From 086a6f19c7a0e10c82be21c280d918d035185da4 Mon Sep 17 00:00:00 2001 From: def324 Date: Sat, 11 Feb 2023 11:55:34 -0500 Subject: [PATCH] fix to work on default postgres db --- dslr/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dslr/runner.py b/dslr/runner.py index 9cb96a4..2db4900 100644 --- a/dslr/runner.py +++ b/dslr/runner.py @@ -62,7 +62,7 @@ def exec_sql( global pg_client if not pg_client: - # We always want to connect to the `postgres` and not the target + # We always want to connect to the `template1` and not the target # database because none of our operations need to query the target # database. pg_client = PGClient( @@ -70,7 +70,7 @@ def exec_sql( port=settings.db.port, user=settings.db.username, password=settings.db.password, - dbname="postgres", + dbname="template1", ) return pg_client.execute(sql, data)