Skip to content

Commit

Permalink
F #6342: Fix search for cluster VMs for MySQL (#3378)
Browse files Browse the repository at this point in the history
  • Loading branch information
paczerny authored Jan 23, 2025
1 parent aa085ef commit 91666f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/VirtualMachinePool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ int VirtualMachinePool::get_cluster_vms(int user_id, int group_id, int cid,
// Filter cluster
if (db->supports(SqlDB::SqlFeature::JSON_QUERY))
{
os << "JSON_CONTAINS(body_json, '" << cid
<< "', '$.VM.HISTORY_RECORDS.HISTORY[*].CID') = 1";
os << "JSON_CONTAINS(body_json, '\"" << cid
<< "\"', '$.VM.HISTORY_RECORDS.HISTORY[0].CID')";
}
else
{
Expand Down

0 comments on commit 91666f8

Please sign in to comment.