summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 5c1afb1f82d..8642820ff3f 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -427,6 +427,8 @@ void key_unpack(String *to, TABLE *table, KEY *key)
key_part < key_part_end;
key_part++)
{
+ if (key_part->field->invisible > INVISIBLE_USER)
+ continue;
if (to->length())
to->append('-');
if (key_part->null_bit)