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:
jimw@mysql.com 2005-01-13 17:38:13 -08:00
commit 3998da80e9
7 changed files with 49 additions and 45 deletions

View file

@ -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" :