diff --git a/server/services/store/sqlstore/util.go b/server/services/store/sqlstore/util.go index e458758bd..8f4bde5ed 100644 --- a/server/services/store/sqlstore/util.go +++ b/server/services/store/sqlstore/util.go @@ -146,7 +146,7 @@ func (s *SQLStore) GetSchemaName() (string, error) { case model.MysqlDBType: query = s.getQueryBuilder(s.db).Select("DATABASE()") case model.PostgresDBType: - query = s.getQueryBuilder(s.db).Select("current_catalog") + query = s.getQueryBuilder(s.db).Select("current_schema()") case model.SqliteDBType: return "", nil default: