summaryrefslogtreecommitdiff
path: root/sql/sql_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_table.h')
-rw-r--r--sql/sql_table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.h b/sql/sql_table.h
index 963625c9583..83e88c82f0e 100644
--- a/sql/sql_table.h
+++ b/sql/sql_table.h
@@ -21,9 +21,9 @@
#include "m_string.h" // LEX_CUSTRING
#define ERROR_INJECT_CRASH(code) \
- DBUG_EVALUATE_IF(code, (DBUG_SUICIDE(), 0), 0)
+ (DBUG_IF(code) && (DBUG_SUICIDE(), 0))
#define ERROR_INJECT_ERROR(code) \
- DBUG_EVALUATE_IF(code, (my_error(ER_UNKNOWN_ERROR, MYF(0)), TRUE), 0)
+ (DBUG_IF(code) && (my_error(ER_UNKNOWN_ERROR, MYF(0)), 1))
class Alter_info;
class Alter_table_ctx;