summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-07-28 12:58:47 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-07-28 12:58:47 -0400
commitb15bda8328bf052d7b61075dda8c16dbad59cde8 (patch)
tree62cecebb217bdadb52124df7eb3dcb5de2cfc129
parent2602f3b49edd92cc292a49cca26377f19f1ccf4b (diff)
parentc45cf5514f3c1d42d5ed4201ff976f21cee2580d (diff)
downloadchat-b15bda8328bf052d7b61075dda8c16dbad59cde8.tar.gz
chat-b15bda8328bf052d7b61075dda8c16dbad59cde8.tar.bz2
chat-b15bda8328bf052d7b61075dda8c16dbad59cde8.zip
Merge pull request #270 from mattermost/mm-1763
MM-1763 update our postgresql index check to work with 9.2.4+ versions of postgresql
-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