conninfo construction error fixed
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Sat, 13 Dec 2008 17:58:10 +0100
changeset 18 f3657061ec00
parent 17 b3731a25b9ec
child 19 933d86c1ff71
conninfo construction error fixed committer: Markus Bröker <mbroeker@largo.homelinux.org>
db_bridge/postgresql_db.cpp
--- a/db_bridge/postgresql_db.cpp
+++ b/db_bridge/postgresql_db.cpp
@@ -13,12 +13,12 @@
     password = pwd;
     database = db;
 
-    conninfo = "user=" + user + "dbname=" + database;
+    conninfo = "user=" + user + " dbname=" + database;
 
     if (server != "" && pwd == "") {
         std::cout << "Passwort von " << user << "@" << server << ": ";
         std::getline (std::cin, password);
-        conninfo += " host=" + server + "password=" + password;
+        conninfo += " host=" + server + " password=" + password;
     }
 }