summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-05-20 19:08:03 +0200
committerSergei Golubchik <serg@mariadb.org>2019-06-14 11:12:18 +0200
commit2e73561c6c575a20003ca22733194d7ac12ff1ee (patch)
treeb56e5dd5223cd53f963dcfc16363866aa9f96556 /sql/sql_show.cc
parent4a3d51c76c131e7b5348d7c714a619f82de32d39 (diff)
downloadmariadb-git-2e73561c6c575a20003ca22733194d7ac12ff1ee.tar.gz
MDEV-16804 SYSTEM VERSIONING columns not showing as GENERATED
Closes #830
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 64770595348..1170aead53c 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -6001,9 +6001,15 @@ static int get_schema_column_record(THD *thd, TABLE_LIST *tables,
else if (field->flags & VERS_SYSTEM_FIELD)
{
if (field->flags & VERS_SYS_START_FLAG)
+ {
table->field[21]->store(STRING_WITH_LEN("ROW START"), cs);
+ buf.set(STRING_WITH_LEN("STORED GENERATED"), cs);
+ }
else
+ {
table->field[21]->store(STRING_WITH_LEN("ROW END"), cs);
+ buf.set(STRING_WITH_LEN("STORED GENERATED"), cs);
+ }
table->field[21]->set_notnull();
table->field[20]->store(STRING_WITH_LEN("ALWAYS"), cs);
}