summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 16:22:21 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 16:22:21 +0000
commit24ab5aaa36db7b6f7f45b0411e67a7746a15a32d (patch)
tree108c11253aa66ed77d653f25d28e9607b886be89
parentRemove clang options not supported on build server (diff)
downloadlibdbpp-24ab5aaa36db7b6f7f45b0411e67a7746a15a32d.tar.bz2
libdbpp-24ab5aaa36db7b6f7f45b0411e67a7746a15a32d.tar.xz
libdbpp-24ab5aaa36db7b6f7f45b0411e67a7746a15a32d.zip
Correctly name mock databases
-rw-r--r--libdbpp/mockDatabase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbpp/mockDatabase.cpp b/libdbpp/mockDatabase.cpp
index ddc13af..15bfe12 100644
--- a/libdbpp/mockDatabase.cpp
+++ b/libdbpp/mockDatabase.cpp
@@ -72,11 +72,11 @@ MockDatabase::PlaySchemaScript(DB::Connection * conn, const boost::filesystem::p
f.close();
}
-AdHocFormatter(MockServerDatabaseName, "test_%?_%?");
+AdHocFormatter(MockServerDatabaseName, "libdbpp_mock_%?_%?_%?");
MockServerDatabase::MockServerDatabase(const std::string & masterdb, const std::string & name, const std::string & type) :
MockDatabase(name),
master(DB::ConnectionFactory::createNew(type, masterdb)),
- testDbName(MockServerDatabaseName::get(getpid(), ++mocked))
+ testDbName(MockServerDatabaseName::get(name, getpid(), ++mocked))
{
}