summaryrefslogtreecommitdiff
path: root/server/src/database.cc
diff options
context:
space:
mode:
authordeva <deva>2009-02-17 12:13:35 +0000
committerdeva <deva>2009-02-17 12:13:35 +0000
commit4e5cc9a65ef3cdcf3b7128ae1037510385854162 (patch)
treee61cd86ce7257e5c6fafa5ce069c1a19e7c371be /server/src/database.cc
parent417532e9def7d5568ec9804a65078f2b42707a4a (diff)
Oups... the dao = NULL should be set regardless of the value of WITHOUT_DB.
Diffstat (limited to 'server/src/database.cc')
-rw-r--r--server/src/database.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/database.cc b/server/src/database.cc
index 6a25f93..5a03126 100644
--- a/server/src/database.cc
+++ b/server/src/database.cc
@@ -35,8 +35,8 @@
Database::Database(std::string _backend, std::string _host, std::string _port, std::string _user, std::string _passwd, std::string _dbname)
{
-#ifndef WITHOUT_DB
dao = NULL;
+#ifndef WITHOUT_DB
if(_backend == "pgsql") {
PRACRO_DEBUG(db, "construct(%s, %s, %s, %s, %s)\n", _host.c_str(), _port.c_str(), _user.c_str(), _passwd.c_str(), _dbname.c_str());
dao = new PracroDAOPgsql(_host, _port, _user, _passwd, _dbname);