From 917ca6b9181899334e3befd922067c777f3ed6e9 Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Tue, 14 Mar 2023 12:08:34 -0600 Subject: [PATCH] revert postgres change --- server/services/store/sqlstore/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: