Skip to content

Commit

Permalink
Updated query
Browse files Browse the repository at this point in the history
  • Loading branch information
rahim-kanji committed Oct 24, 2024
1 parent 65fba5d commit a274a2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int main(int argc, char** argv) {
metrics.before = getQueryCacheMetrics(proxysql_admin);

// Execute the test query and check the result
if (exec_query(proxysql_backend, "SELECT 1 WHERE 1!=1")) {
if (exec_query(proxysql_backend, "SELECT 1 WHERE 1 IS NULL")) {
MYSQL_RES* res = mysql_store_result(proxysql_backend);
ok(res != nullptr, "Query executed successfully.");
mysql_free_result(res);
Expand All @@ -143,7 +143,7 @@ int main(int argc, char** argv) {
MYSQL_QUERY(proxysql_admin, "LOAD MYSQL VARIABLES TO RUNTIME");

// Execute the same query again and check the result
if (exec_query(proxysql_backend, "SELECT 1 WHERE 1!=1")) {
if (exec_query(proxysql_backend, "SELECT 1 WHERE 1 IS NULL")) {
MYSQL_RES* res = mysql_store_result(proxysql_backend);
ok(res != nullptr, "Query executed successfully.");
mysql_free_result(res);
Expand Down

0 comments on commit a274a2c

Please sign in to comment.