pldb: Force the database name.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 11 Feb 2023 23:04:13 +0000 (23:04 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 Feb 2023 23:04:13 +0000 (23:04 +0000)
This could really do with a proper configuration mechanism.

pldb

diff --git a/pldb b/pldb
index 2e70b6c..73fb31d 100755 (executable)
--- a/pldb
+++ b/pldb
@@ -44,7 +44,7 @@ sub db_connect (;$) {
              RaiseError => 1,
              ReadOnly => 1,
              %$opts);
-  $DB = DBI->connect("dbi:Pg:host=roadstar", "", "", \%opts);
+  $DB = DBI->connect("dbi:Pg:host=roadstar;dbname=mdw", "", "", \%opts);
 }
 
 sub must_exist ($$@) {