summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-02-04 17:42:18 +0100
committerunknown <serg@serg.mylan>2004-02-04 17:42:18 +0100
commitc8ff8ec18d96e0482b16a7b40182cfc34fea59db (patch)
treec6f1ab5c53996bc5c3f45e0ec465f75af73abce3 /sql/sql_show.cc
parent9d1f86a3a2b19bb6df33475b2fc1712dfe09b744 (diff)
downloadmariadb-git-c8ff8ec18d96e0482b16a7b40182cfc34fea59db.tar.gz
beautify SHOW INDEX
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index f62853ce9d6..3d727a33173 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -726,9 +726,8 @@ mysqld_show_keys(THD *thd, TABLE_LIST *table_list)
net_store_null(packet);
/* Check if we have a key part that only uses part of the field */
- if (!key_part->field ||
- key_part->length !=
- table->field[key_part->fieldnr-1]->key_length())
+ if (!(key_info->flags & HA_FULLTEXT) && (!key_part->field ||
+ key_part->length != table->field[key_part->fieldnr-1]->key_length()))
{
end=int10_to_str((long) key_part->length, buff,10); /* purecov: inspected */
net_store_data(packet,convert,buff,(uint) (end-buff)); /* purecov: inspected */