• Monty's avatar
    Add --optimizer_trace option to mysqltest · 607b14c4
    Monty authored
    This enables optimizer_trace output for the next SQL command.
    Identical as if one would have done:
    - Store value of @@optimizer_trace
    - Set @optimizer_trace="enabled=on"
    - Run query
    - SELECT * from OPTIMIZER_TRACE
    - Restore value of @@optimizer_trace
    
    This is a great time saver when one wants to quickly check the optimizer
    trace for a query in a mtr test.
    607b14c4
mysqltest.cc 296 KB