• kaa@polly.(none)'s avatar
    Fix for bug #29131: SHOW VARIABLES reports variable 'log' but SET · 99f4b743
    kaa@polly.(none) authored
    doesn't recognize it
    
    This is a 5.0 version of the patch, it will be null-merged to 5.1
    
    Problem:
    
    'log' and 'log_slow_queries' were "fixed" variables, i.e. they showed up
    in SHOW VARIABLES, but could not be used in expressions like 
    "select @@log". Also, using them in the SET statement produced an 
    incorrect "unknown system variable" error.
    
    Solution:
    
    Make 'log' and 'log_slow_queries' read-only dynamic variables to make 
    them available for use in expressions, and produce a correct error 
    about the variable being read-only when used in the SET statement.
    99f4b743
set_var.cc 119 KB