1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Use 'USING <indextype>' in results of SHOW CREATE TABLE, it's the preferred

syntax. (Bug #7233)


sql/sql_show.cc:
  Use 'USING <indextype>' in SHOW CREATE TABLE, it's the preferred syntax
mysql-test/r/ctype_utf8.result:
  Update results
mysql-test/r/show_check.result:
  Update results
mysql-test/r/sql_mode.result:
  Update results
mysql-test/t/show_check.test:
  Use preferred syntax 'USING BTREE' instead of 'TYPE BTREE'
This commit is contained in:
unknown
2005-01-08 07:31:13 +01:00
parent 0c57a67ce0
commit 895b50d74c
5 changed files with 11 additions and 11 deletions

View File

@ -1408,12 +1408,12 @@ store_create_info(THD *thd, TABLE *table, String *packet)
{
if (table->db_type == DB_TYPE_HEAP &&
key_info->algorithm == HA_KEY_ALG_BTREE)
packet->append(" TYPE BTREE", 11);
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))
packet->append(" TYPE RTREE", 11);
packet->append(" USING RTREE", 12);
}
packet->append(" (", 2);