• unknown's avatar
    Fixed some bugs in my_getopt.c, added functionality for new GET_* · f7b201e1
    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.
    f7b201e1
mysqld.cc 171 KB