1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

Bug #408: Fix compilation when mysql flag is set to 'no'

This commit is contained in:
Carlos Martín 2011-05-06 18:14:23 +02:00
parent 27977b913d
commit 7aacd86c3c
2 changed files with 2 additions and 2 deletions

View File

@ -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!");
};

View File

@ -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;