summaryrefslogtreecommitdiff
path: root/server/src/database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/database.cc')
-rw-r--r--server/src/database.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/database.cc b/server/src/database.cc
index 81b495f..27e903f 100644
--- a/server/src/database.cc
+++ b/server/src/database.cc
@@ -34,7 +34,8 @@
#include "pracrodaopgsql.h"
#include "pracrodaotest.h"
-Database::Database(std::string _backend, std::string _host, std::string _port, std::string _user, std::string _passwd, std::string _dbname)
+Database::Database(std::string _backend, std::string _host, std::string _port,
+ std::string _user, std::string _passwd, std::string _dbname)
{
dao = NULL;
#ifndef WITHOUT_DB
@@ -48,8 +49,7 @@ Database::Database(std::string _backend, std::string _host, std::string _port, s
#endif/*WITHOUT_DB*/
if(_backend == "testdb") {
DEBUG(db, "Running with 'testdb'\n");
- Data data;
- dao = new PracroDAOTest(data, true);
+ dao = new PracroDAOTest(true);
return;
}