summaryrefslogtreecommitdiff
path: root/server/src/database.cc
diff options
context:
space:
mode:
authordeva <deva>2011-02-17 15:03:46 +0000
committerdeva <deva>2011-02-17 15:03:46 +0000
commiteab5027694025e34b9ed0ad44f22a2db3e89feda (patch)
tree8167c848ae0ee7d918c6b707750b645c0f75033c /server/src/database.cc
parentbb8b75573bf891ebf0fa871cee1cd5d80cb2a02f (diff)
Finished implementation of new database layout in testdb.
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;
}