summaryrefslogtreecommitdiffstats
path: root/store/sql_channel_store.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-23 11:02:39 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-23 11:02:39 -0800
commit98751a4f65a656839dc3724e72e672b585cb18c9 (patch)
tree3197feb99dc84ceb931fc0ab59c0f3013c2aab80 /store/sql_channel_store.go
parent5b0d2dd8f9e7719215d6cfb878738221585a5e3f (diff)
downloadchat-98751a4f65a656839dc3724e72e672b585cb18c9.tar.gz
chat-98751a4f65a656839dc3724e72e672b585cb18c9.tar.bz2
chat-98751a4f65a656839dc3724e72e672b585cb18c9.zip
removing old bindVars methods
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r--store/sql_channel_store.go2
1 files changed, 1 insertions, 1 deletions
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())
}