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

feature-#206: MySQL syntax doesnt like ==

This commit is contained in:
Constantino Vázquez Blanco 2010-05-06 16:23:26 +02:00
parent 1d4653f793
commit 1b9ada2f8d

View File

@ -240,9 +240,9 @@ int VirtualMachinePool::get_running(
ostringstream os;
string where;
os << "state == " << VirtualMachine::ACTIVE
<< " and ( lcm_state == " << VirtualMachine::RUNNING
<< " or lcm_state == " << VirtualMachine::UNKNOWN << " )";
os << "state = " << VirtualMachine::ACTIVE
<< " and ( lcm_state = " << VirtualMachine::RUNNING
<< " or lcm_state = " << VirtualMachine::UNKNOWN << " )";
where = os.str();
@ -258,7 +258,7 @@ int VirtualMachinePool::get_pending(
ostringstream os;
string where;
os << "state == " << VirtualMachine::PENDING;
os << "state = " << VirtualMachine::PENDING;
where = os.str();