• Magne Mahre's avatar
    Bug #38124 "general_log_file" variable silently unset when using expression · ffbe8512
    Magne Mahre authored
                      
    When assigning the new string value to the variable, the
    Item::str_value member was used.  This is not according to
    the protocol.  str_value is an internal member used for
    temporary assignments, and is not consistently set for all
    string operations.  It is set for constant strings, so it would
    work in these cases, but not for string functions (concat,
    substr, etc.)
                      
    The correct approach is to use Item::val_str(..) to evaluate
    and retrieve the string.
    
    Backport from 6.0-codebase
    
    6.0-codebase revno: 2617.31.17
    ffbe8512
log_state.test 10.9 KB