db_bridge/postgresql_db.cpp
changeset 125 9c0fdc119939
parent 65 76514757b0d6
--- a/db_bridge/postgresql_db.cpp
+++ b/db_bridge/postgresql_db.cpp
@@ -42,6 +42,10 @@
         return false;
     }
 
+    if (PQstatus(conn) != CONNECTION_OK) {
+        return false;
+    }
+
     return true;
 }