• Michael Widenius's avatar
    Fixes for Opensolaris (to get buildbot green) · 6473807c
    Michael Widenius authored
    - Fixed memory leaks in mysqldump
    - Fixed printf of NULL which caused crashes on OpenSolaris when using --debug
    - Fixed realloc() problem that caused out of memory when running mysqldump.test on OpenSolaris
    
    
    client/mysqldump.c:
      Fixed memory leaks
      Fixed printf of NULL which caused crashes on OpenSolaris when using --debug
    client/mysqltest.cc:
      Fixed printf of NULL which caused crashes on OpenSolaris when using --debug
    include/my_global.h:
      Added simple macro val_or_null() to simplify detecting of NULL strings for printf
    sql/handler.cc:
      Fixed printf of NULL which caused crashes on OpenSolaris when using --debug
    sql/sql_db.cc:
      Fixed printf of NULL which caused crashes on OpenSolaris when using --debug
      Removed testing of 'new_db_name' as this is guranteed never NULL
    sql/sql_show.cc:
      Fixed printf of NULL which caused crashes on OpenSolaris when using --debug
    storage/csv/ha_tina.cc:
      Fixed realloc() problem that caused out of memory when running mysqldump.test on OpenSolaris
      (OpenSolaris default malloc() can't handle a lot of reallocs() of strings that are growing one byte at a time)
      This did speed up logging to cvs with a magnitude for large strings.
    6473807c
sql_db.cc 57.5 KB