summaryrefslogtreecommitdiff
path: root/sql/thr_malloc.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-09-02 13:47:00 +0300
committermonty@hundin.mysql.fi <>2001-09-02 13:47:00 +0300
commit04ec0de7d0df99b18aabad7a8edd551483f09f3d (patch)
treee5581eaf73302fbd721a4c17983fb6fdfca266d0 /sql/thr_malloc.cc
parent22dbb425aea46169cf7f98dfacbf2244ab19ce0d (diff)
downloadmariadb-git-04ec0de7d0df99b18aabad7a8edd551483f09f3d.tar.gz
Changed DB_TYPE_INNOBASE to DB_TYPE_INNODB
Fix that DROP DATABASE works with all table types Use BULK_INSERT when inserting more than one row Better TRUNCATE TABLE
Diffstat (limited to 'sql/thr_malloc.cc')
-rw-r--r--sql/thr_malloc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/thr_malloc.cc b/sql/thr_malloc.cc
index deb304443df..4017b7c30b8 100644
--- a/sql/thr_malloc.cc
+++ b/sql/thr_malloc.cc
@@ -22,7 +22,9 @@
extern "C" {
void sql_alloc_error_handler(void)
{
- current_thd->fatal_error=1; /* purecov: inspected */
+ THD *thd=current_thd;
+ if (thd) // QQ; To be removed
+ thd->fatal_error=1; /* purecov: inspected */
sql_print_error(ER(ER_OUT_OF_RESOURCES));
}
}