summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 0fa7aaf1d88..ea6e09f6cb5 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -753,13 +753,11 @@ store_create_info(THD *thd, TABLE *table, String* packet)
for (uint j=0 ; j < key_info->key_parts ; j++,key_part++)
{
- if(j)
+ if (j)
packet->append(',');
- if(key_part->field)
+ if (key_part->field)
packet->append(key_part->field->field_name);
- KEY *key=table->key_info+i;
-
if (!key_part->field ||
(key_part->length !=
table->field[key_part->fieldnr-1]->key_length() &&