summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2019-07-31 03:28:38 -0700
committerAnel Husakovic <anel@mariadb.org>2019-08-21 01:26:06 -0700
commit888f6852261c67a57f21ae80ebb0f3c3f539db7b (patch)
tree67b530f0687478ab664e380a2e3a969e73df10ad /sql/sql_show.cc
parentc93f96e2ec3d4beb9bd2ed2b2cf509d88a165809 (diff)
downloadmariadb-git-888f6852261c67a57f21ae80ebb0f3c3f539db7b.tar.gz
MDEV-20210 If you have an INVISIBLE VIRTUAL column, SHOW CREATE TABLE doesn't list it as INVISIBLE
Diffstat (limited to 'sql/sql_show.cc')
-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 1170aead53c..77eb51f6368 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -2256,6 +2256,10 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
packet->append(STRING_WITH_LEN(" STORED"));
else
packet->append(STRING_WITH_LEN(" VIRTUAL"));
+ if (field->invisible == INVISIBLE_USER)
+ {
+ packet->append(STRING_WITH_LEN(" INVISIBLE"));
+ }
}
else
{