summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-07-28 23:23:33 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-07-28 23:23:33 +0500
commite0b8f9eeafb7adf50f238c27c0a1dd9bb231ecb9 (patch)
tree92415fbb46ddc0d2c083a45ec1d342cf13ce27b0 /store
parent2bfe9eea5634fbfd1af328e28c4d1ef8d0411d5c (diff)
parentb15bda8328bf052d7b61075dda8c16dbad59cde8 (diff)
downloadchat-e0b8f9eeafb7adf50f238c27c0a1dd9bb231ecb9.tar.gz
chat-e0b8f9eeafb7adf50f238c27c0a1dd9bb231ecb9.tar.bz2
chat-e0b8f9eeafb7adf50f238c27c0a1dd9bb231ecb9.zip
Merge branch 'master' of https://github.com/mattermost/platform into mm-1762
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