mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Output 'MEMORY' as table type for tables using the memory (nee heap) storage
engine, except when running with sql_mode & MYSQL323. (Bug #6659)
This commit is contained in:
parent
f01f721672
commit
3998da80e9
7 changed files with 49 additions and 45 deletions
|
|
@ -32,7 +32,11 @@ class ha_heap: public handler
|
|||
public:
|
||||
ha_heap(TABLE *table): handler(table), file(0), records_changed(0) {}
|
||||
~ha_heap() {}
|
||||
const char *table_type() const { return "HEAP"; }
|
||||
const char *table_type() const
|
||||
{
|
||||
return (table->in_use->variables.sql_mode & MODE_MYSQL323) ?
|
||||
"HEAP" : "MEMORY";
|
||||
}
|
||||
const char *index_type(uint inx)
|
||||
{
|
||||
return ((table->key_info[inx].algorithm == HA_KEY_ALG_BTREE) ? "BTREE" :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue