diff options
author | Eugene Kosov <claprix@yandex.ru> | 2018-03-16 15:47:48 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-04-10 13:12:36 +0200 |
commit | bb56a06d2655e6698e72931f900ebad47cfc29a0 (patch) | |
tree | 883a968b6e1aa70cbfa54f17fb3631e78ffbe016 /sql/sql_show.cc | |
parent | 339b9055791358cc135187d968d2a47d3c33b94d (diff) | |
download | mariadb-git-bb56a06d2655e6698e72931f900ebad47cfc29a0.tar.gz |
MDEV-15062 Information Schema COLUMNS Table does not show system versioning information
get_schema_column_record(): print 'WITHOUT SYSTEM VERSIONING` in 'EXTRA'
for such fields
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 3c361c693b4..38a13c49278 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -6000,6 +6000,12 @@ static int get_schema_column_record(THD *thd, TABLE_LIST *tables, buf.append(STRING_WITH_LEN(", ")); buf.append(STRING_WITH_LEN("INVISIBLE"),cs); } + if (field->vers_update_unversioned()) + { + if (buf.length()) + buf.append(STRING_WITH_LEN(", ")); + buf.append(STRING_WITH_LEN("WITHOUT SYSTEM VERSIONING"), cs); + } table->field[17]->store(buf.ptr(), buf.length(), cs); table->field[19]->store(field->comment.str, field->comment.length, cs); if (schema_table_store_record(thd, table)) |