Commit 730f67a4 authored by Sergei Golubchik's avatar Sergei Golubchik

fix have_debug_sync.inc to be more robust

(debug_sync value can have single quotes)
parent 33f3c93e
--require r/have_debug_sync.require if (`select count(*) = 0 from information_schema.session_variables where variable_name = 'debug_sync' and variable_value like 'on %'`)
disable_query_log; {
let $value= query_get_value(SHOW VARIABLES LIKE 'debug_sync', Value, 1); skip debug_sync is not available;
eval SELECT ('$value' LIKE 'ON %') AS debug_sync; }
enable_query_log;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment