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:
parent
1d4653f793
commit
1b9ada2f8d
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user