1--disable_query_log 2--disable_warnings 3# Check if variable optimizer_trace exists 4let $have_var = `select TRUE from information_schema.session_variables where variable_name="optimizer_trace"`; 5if (!$have_var) 6{ 7 skip requires optimizer trace support; 8} 9--enable_warnings 10--enable_query_log 11