From 98751a4f65a656839dc3724e72e672b585cb18c9 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Thu, 23 Jul 2015 11:02:39 -0800 Subject: removing old bindVars methods --- store/sql_channel_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store/sql_channel_store.go') diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index 9427e9219..8961d5d97 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -169,7 +169,7 @@ func (s SqlChannelStore) Delete(channelId string, time int64) StoreChannel { go func() { result := StoreResult{} - _, err := s.GetMaster().Exec("Update Channels SET DeleteAt = "+s.GetMaster().Dialect.BindVar(0)+", UpdateAt = "+s.GetMaster().Dialect.BindVar(1)+" WHERE Id = "+s.GetMaster().Dialect.BindVar(2), time, time, channelId) + _, err := s.GetMaster().Exec("Update Channels SET DeleteAt = :Time, UpdateAt = :Time WHERE Id = :ChannelId", map[string]interface{}{"Time": time, "ChannelId": channelId}) if err != nil { result.Err = model.NewAppError("SqlChannelStore.Delete", "We couldn't delete the channel", "id="+channelId+", err="+err.Error()) } -- cgit v1.2.3-1-g7c22