diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-09-29 17:33:16 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-09-29 17:33:16 -0400 |
commit | 5e9dccc464590ffe6e05041b76192bb6f12e30c6 (patch) | |
tree | b3c76aa86bdb4e50bc7c3f3456cfa78e26f38c25 /store/sql_channel_store.go | |
parent | fb9fe1995ca7502bea23e1ab7082e8c8757251fb (diff) | |
parent | 8fadea44debd00c1babd12bff9eb2dd0a5d99370 (diff) | |
download | chat-5e9dccc464590ffe6e05041b76192bb6f12e30c6.tar.gz chat-5e9dccc464590ffe6e05041b76192bb6f12e30c6.tar.bz2 chat-5e9dccc464590ffe6e05041b76192bb6f12e30c6.zip |
Merge pull request #865 from mattermost/PLT-404
PLT-404 adding basic error checking to config file.
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r-- | store/sql_channel_store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index 877246fc3..cb686090e 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -583,7 +583,7 @@ func (s SqlChannelStore) UpdateLastViewedAt(channelId string, userId string) Sto var query string - if utils.Cfg.SqlSettings.DriverName == "postgres" { + if utils.Cfg.SqlSettings.DriverName == model.DATABASE_DRIVER_POSTGRES { query = `UPDATE ChannelMembers SET @@ -597,7 +597,7 @@ func (s SqlChannelStore) UpdateLastViewedAt(channelId string, userId string) Sto Channels.Id = ChannelMembers.ChannelId AND UserId = :UserId AND ChannelId = :ChannelId` - } else if utils.Cfg.SqlSettings.DriverName == "mysql" { + } else if utils.Cfg.SqlSettings.DriverName == model.DATABASE_DRIVER_MYSQL { query = `UPDATE ChannelMembers, Channels SET |