• Magne Mahre's avatar
    Bug#51631 general-log flag doesn't accept "on" as a value in · e46750d9
    Magne Mahre authored
              the my.cnf, works as command
          
    Different parsing mechanisms are used for command line/my.cnf 
    options  and the SQL commands.  The former only accepted
    numeric arguments, and regarded all numbers different from 0 
    as 'true'.  Any other argument was parsed as 'false' .
          
    This patch adds the words 'true' and 'on' as valid truth
    values for boolean option arguments.
          
    A test case is not provided, as the fix is simple and
    does not warrant a separate test file (no existing
    suitable test file was found)
    
    (backported from mysql-trunk)
    e46750d9
my_getopt.c 40.4 KB