Merge pull request #712 from mattermost/postgres-oauth-fix

With Postgres return false when checking if column exists, if the table does not exist.
Этот коммит содержится в:
Christopher Speller
2015-09-18 09:30:25 -04:00
родитель c717fcb325 432753bb4d
Коммит 151849d536

Просмотреть файл

@@ -144,6 +144,10 @@ func (ss SqlStore) DoesColumnExist(tableName string, columnName string) bool {
)
if err != nil {
if err.Error() == "pq: relation \""+strings.ToLower(tableName)+"\" does not exist" {
return false
}
l4g.Critical("Failed to check if column exists %v", err)
time.Sleep(time.Second)
panic("Failed to check if column exists " + err.Error())