• Michael Widenius's avatar
    Fixes for Opensolaris (to get buildbot green) · 5a2f40d4
    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.
    5a2f40d4
sql_show.cc 242 KB