aboutsummaryrefslogtreecommitdiffstats
path: root/internal/storage/postgresql.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/storage/postgresql.go')
-rw-r--r--internal/storage/postgresql.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/storage/postgresql.go b/internal/storage/postgresql.go
index f728514..dee0288 100644
--- a/internal/storage/postgresql.go
+++ b/internal/storage/postgresql.go
@@ -55,7 +55,7 @@ func (p PostgresqlAdapter) TableExists(
func (p PostgresqlAdapter) DatabaseName(executor sqlExecutor) (string, error) {
var name string
- err := executor.QueryRow("SELECT database_name();").Scan(&name)
+ err := executor.QueryRow("SELECT current_database();").Scan(&name)
if err != nil {
return "", fmt.Errorf("unable to retrieve database name: %w", err)
}