From 24ab5aaa36db7b6f7f45b0411e67a7746a15a32d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 1 Jan 2017 16:22:21 +0000 Subject: Correctly name mock databases --- libdbpp/mockDatabase.cpp | 4 ++-- 1 file 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)) { } -- cgit v1.2.3