From 7aacd86c3c1117df806c6e6ca9434ff921840e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 6 May 2011 18:14:23 +0200 Subject: [PATCH] Bug #408: Fix compilation when mysql flag is set to 'no' --- include/MySqlDB.h | 2 +- include/test/OneUnitTest.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/MySqlDB.h b/include/MySqlDB.h index 24fc5844db..a32cd03c31 100644 --- a/include/MySqlDB.h +++ b/include/MySqlDB.h @@ -126,7 +126,7 @@ public: int port, string user, string password, - const char * database) + string database) { throw runtime_error("Aborting oned, MySQL support not compiled!"); }; diff --git a/include/test/OneUnitTest.h b/include/test/OneUnitTest.h index e3a4823438..ff07a79775 100644 --- a/include/test/OneUnitTest.h +++ b/include/test/OneUnitTest.h @@ -57,7 +57,7 @@ public: if (mysql) { db = new MySqlDB( "localhost",0, - "oneadmin","oneadmin",NULL); + "oneadmin","oneadmin",db_name); ostringstream oss1; oss1 << "DROP DATABASE IF EXISTS " << db_name;