summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2002-11-19 20:00:02 +0400
committerunknown <ram@mysql.r18.ru>2002-11-19 20:00:02 +0400
commit888424a13a5c4d924c3ae17bc401a2a2c1c089e7 (patch)
treedcf4f09efe2de832e014b9401109f8e3cdca917f
parenta629adc6f956b0c7a279994085577a790e8156de (diff)
parentf6da2b2460917b7bd43af343b00e2c04d7b7a692 (diff)
downloadmariadb-git-888424a13a5c4d924c3ae17bc401a2a2c1c089e7.tar.gz
Merge rkalimullin@work.mysql.com:/home/bk/mysql-4.1
into mysql.r18.ru:/usr/home/ram/mysql-4.1.bdb
-rw-r--r--sql/sql_show.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index bd8abda5e87..c039f84dc77 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))