diff options
-rw-r--r-- | sql/sql_table.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_table.h b/sql/sql_table.h index ccde7d87120..02c9bca6044 100644 --- a/sql/sql_table.h +++ b/sql/sql_table.h @@ -21,9 +21,13 @@ #include "m_string.h" // LEX_CUSTRING #include "lex_charset.h" +#if !defined(DBUG_OFF) #define ERROR_INJECT(code) \ ((DBUG_IF("crash_" code) && (DBUG_SUICIDE(), 0)) || \ (DBUG_IF("fail_" code) && (my_error(ER_UNKNOWN_ERROR, MYF(0)), 1))) +#else +#define ERROR_INJECT(code) 0 +#endif class Alter_info; class Alter_table_ctx; |