From f6da2b2460917b7bd43af343b00e2c04d7b7a692 Mon Sep 17 00:00:00 2001 From: unknown <ram@mysql.r18.ru> Date: Tue, 19 Nov 2002 19:58:46 +0400 Subject: [PATCH] added 'USING BTREE' for 'show create table' for HEAP --- sql/sql_show.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index bd8abda5e8..c039f84dc7 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -1140,6 +1140,10 @@ store_create_info(THD *thd, TABLE *table, String *packet) if (!found_primary) append_identifier(thd,packet,key_info->name); + if (table->db_type == DB_TYPE_HEAP && + key_info->algorithm == HA_KEY_ALG_BTREE) + packet->append(" USING BTREE", 12); + // +BAR: send USING only in non-default case: non-spatial rtree if((key_info->algorithm == HA_KEY_ALG_RTREE) && !(key_info->flags & HA_SPATIAL)) -- 2.30.9