diff options
Diffstat (limited to 'sql/thr_malloc.cc')
-rw-r--r-- | sql/thr_malloc.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/thr_malloc.cc b/sql/thr_malloc.cc index 9786f1a6942..b82d29e51f4 100644 --- a/sql/thr_malloc.cc +++ b/sql/thr_malloc.cc @@ -54,8 +54,7 @@ extern "C" { /* Skip writing to the error log to avoid mtr complaints */ DBUG_EXECUTE_IF("simulate_out_of_memory", return;); - sql_print_error("%s", ER(ER_OUT_OF_RESOURCES)); - + sql_print_error("%s", ER_THD_OR_DEFAULT(thd, ER_OUT_OF_RESOURCES)); } } |