Revision b7febc83

View differences:

src/nebula/Nebula.cc
217 217
            {
218 218
                throw runtime_error("Could not create database.");
219 219
            }
220

  
221
            oss.str("");
222
            oss << "USE " << db_name;
223
            rc = db->exec(oss);
224
            if ( rc != 0 )
225
            {
226
                throw runtime_error("Could not open database.");
227
            }
220 228
        }
221 229

  
222 230
        NebulaLog::log("ONE",Log::INFO,"Bootstraping OpenNebula database.");
src/sql/MySqlDB.cc
44 44

  
45 45
    // Connect to the server
46 46
    if (!mysql_real_connect(db, server.c_str(), user.c_str(),
47
                            password.c_str(), database.c_str(), port, NULL, 0))
47
                            password.c_str(), 0, port, NULL, 0))
48 48
    {
49 49
        throw runtime_error("Could not open database.");
50 50
    }
src/vm_template/test/VMTemplatePoolTest.cc
491 491

  
492 492
        string result = oss.str();
493 493

  
494
        result.replace(128, 10, replacement);
495
        result.replace(391, 10, replacement);
496
        result.replace(656, 10, replacement);
494
        result.replace(130, 10, replacement);
495
        result.replace(393, 10, replacement);
496
        result.replace(658, 10, replacement);
497 497

  
498 498
/*
499 499
        if( result != xml_dump )
......
527 527

  
528 528
        string result = oss.str();
529 529

  
530
        result.replace(128, 10, replacement);
531
        result.replace(391, 10, replacement);
530
        result.replace(130, 10, replacement);
531
        result.replace(393, 10, replacement);
532 532

  
533 533
/*
534 534
        if( result != xml_dump_where )

Also available in: Unified diff