summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-11-03 14:20:13 +0300
committerkonstantin@mysql.com <>2005-11-03 14:20:13 +0300
commit7e3f757f2deb08b4f2adb1b4cdd1a764d9678129 (patch)
tree639d3dad03adaaad1f20eb9859a38a80c26f6b13 /sql/handler.h
parent69d985cc9d251c5bc16c8f06691b67bef52a35e0 (diff)
downloadmariadb-git-7e3f757f2deb08b4f2adb1b4cdd1a764d9678129.tar.gz
A fix and a test case for Bug#14210 "Simple query with > operator on
large table gives server crash": make sure that when a MyISAM temporary table is created for a cursor, it's created in its memory root, not the memory root of the current query.
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index af80f021e75..e16c428954c 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -874,7 +874,7 @@ extern ulong total_ha, total_ha_2pc;
/* lookups */
enum db_type ha_resolve_by_name(const char *name, uint namelen);
const char *ha_get_storage_engine(enum db_type db_type);
-handler *get_new_handler(TABLE *table, enum db_type db_type);
+handler *get_new_handler(TABLE *table, MEM_ROOT *alloc, enum db_type db_type);
enum db_type ha_checktype(THD *thd, enum db_type database_type,
bool no_substitute, bool report_error);
bool ha_check_storage_engine_flag(enum db_type db_type, uint32 flag);