summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-07-29 20:55:56 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-07-29 20:55:56 +0500
commit1c186121fe04fb61d945f0b57112e28675c8e066 (patch)
treef2cf511b15990bd01bfde349016388af39f8d340 /store
parent5d77ff4bcde3496554551701438c1f42550e58b3 (diff)
parent27dbcd8767426a60699d2acbeeb9b8a825d5b728 (diff)
downloadchat-1c186121fe04fb61d945f0b57112e28675c8e066.tar.gz
chat-1c186121fe04fb61d945f0b57112e28675c8e066.tar.bz2
chat-1c186121fe04fb61d945f0b57112e28675c8e066.zip
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'store')
-rw-r--r--store/sql_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_store.go b/store/sql_store.go
index 606b2cbc1..0d4f76a72 100644
--- a/store/sql_store.go
+++ b/store/sql_store.go
@@ -224,7 +224,7 @@ func (ss SqlStore) CreateFullTextIndexIfNotExists(indexName string, tableName st
func (ss SqlStore) createIndexIfNotExists(indexName string, tableName string, columnName string, fullText bool) {
if utils.Cfg.SqlSettings.DriverName == "postgres" {
- _, err := ss.GetMaster().SelectStr("SELECT to_regclass($1)", indexName)
+ _, err := ss.GetMaster().SelectStr("SELECT $1::regclass", indexName)
// It should fail if the index does not exist
if err == nil {
return