summaryrefslogtreecommitdiffstats
path: root/store/sql_user_store.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-23 10:15:53 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-23 10:15:53 -0800
commit5b0d2dd8f9e7719215d6cfb878738221585a5e3f (patch)
tree865a61442818860a2f451b2a001ea6a8d7274e68 /store/sql_user_store.go
parent8d9449c068902f51a97e7a6605cd226bf4a26f2e (diff)
downloadchat-5b0d2dd8f9e7719215d6cfb878738221585a5e3f.tar.gz
chat-5b0d2dd8f9e7719215d6cfb878738221585a5e3f.tar.bz2
chat-5b0d2dd8f9e7719215d6cfb878738221585a5e3f.zip
Fixing merges for latest postgres
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r--store/sql_user_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go
index 41aca80c5..0228fa308 100644
--- a/store/sql_user_store.go
+++ b/store/sql_user_store.go
@@ -383,7 +383,7 @@ func (us SqlUserStore) GetByAuth(teamId string, authData string, authService str
user := model.User{}
- if err := us.GetReplica().SelectOne(&user, "SELECT * FROM Users WHERE TeamId=? AND AuthData=? AND AuthService=?", teamId, authData, authService); err != nil {
+ if err := us.GetReplica().SelectOne(&user, "SELECT * FROM Users WHERE TeamId = :TeamId AND AuthData = :AuthData AND AuthService = :AuthService", map[string]interface{}{"TeamId": teamId, "AuthData": authData, "AuthService": authService}); err != nil {
result.Err = model.NewAppError("SqlUserStore.GetByAuth", "We couldn't find the existing account", "teamId="+teamId+", authData="+authData+", authService="+authService+", "+err.Error())
}