• unknown's avatar
    Fixed some bugs in my_getopt.c, added functionality for new GET_* · 9f8a75a1
    unknown authored
    types, migrated mysqld.cc to use my_getopt.
    
    
    include/my_getopt.h:
      
      Added missing types; GET_INT, GET_UINT, GET_ULONG, GET_ULL
    mysys/my_getopt.c:
      - Fixed a bug in processing short options; variable value was set
        wrongly after processing it in get_one_option(), when it needed
        to be done before it.
      - Fixed a bug in setting variable values; if type was OPT_ARG,
        a call without argument destroyed the default value
      - Added functionality for new GET_* types.
    sql/mysqld.cc:
      Changed mysqld.cc to use my_getopt.
    9f8a75a1
my_getopt.c 19.5 KB