From eca9418ca785e2b95c3e1dbe82fc9ddecf7a0331 Mon Sep 17 00:00:00 2001 From: "monty@mysql.com" <> Date: Mon, 28 Jun 2004 00:42:02 +0300 Subject: [PATCH] Added missing my_time.c file to mysqlclient project Moved include to my_global.h --- VC++Files/client/mysqlclient.dsp | 4 ++++ include/my_dbug.h | 5 +---- include/my_global.h | 7 +++++++ sql/sql_table.cc | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/VC++Files/client/mysqlclient.dsp b/VC++Files/client/mysqlclient.dsp index 88ae9352139..4de32e447d3 100644 --- a/VC++Files/client/mysqlclient.dsp +++ b/VC++Files/client/mysqlclient.dsp @@ -435,6 +435,10 @@ SOURCE=..\mysys\my_tempnam.c # End Source File # Begin Source File +SOURCE=..\libmysql\my_time.c +# End Source File +# Begin Source File + SOURCE=..\mysys\my_thr_init.c # End Source File # Begin Source File diff --git a/include/my_dbug.h b/include/my_dbug.h index bc90b91f1c7..9174a8b1ef9 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -16,10 +16,7 @@ #ifndef _dbug_h #define _dbug_h -#ifdef DBUG_OFF -#define NDEBUG /* for assert.h */ -#endif -#include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/my_global.h b/include/my_global.h index 478bfcfdbb7..f5c14ea3e10 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -313,6 +313,13 @@ C_MODE_END #include #endif +/* + A lot of our programs uses asserts, so better to always include it + This also fixes a problem when people uses DBUG_ASSERT without including + assert.h +*/ +#include + /* Go around some bugs in different OS and compilers */ #if defined(_HPUX_SOURCE) && defined(HAVE_SYS_STREAM_H) #include /* HPUX 10.20 defines ulong here. UGLY !!! */ diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 6c9ec41c728..a560bd40028 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -3408,6 +3408,7 @@ int mysql_recreate_table(THD *thd, TABLE_LIST *table_list, lex->key_list.empty(); lex->col_list.empty(); lex->alter_info.reset(); + lex->alter_info.is_simple= 0; // Force full recreate bzero((char*) &create_info,sizeof(create_info)); create_info.db_type=DB_TYPE_DEFAULT; create_info.row_type=ROW_TYPE_DEFAULT;