1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

SQL: forced, hidden versioning [closes #32]

This commit is contained in:
Aleksey Midenkov
2017-03-10 20:25:30 +07:00
parent cbb674282a
commit 0e01038936
10 changed files with 118 additions and 10 deletions

View File

@ -2064,6 +2064,10 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
{
uint flags = field->flags;
if (vers_hide &&
(flags & (VERS_SYS_START_FLAG | VERS_SYS_END_FLAG)))
continue;
if (ptr != table->field)
packet->append(STRING_WITH_LEN(",\n"));
@ -2229,7 +2233,7 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
hton->index_options);
}
if (table->versioned())
if (table->versioned() && !vers_hide)
{
const Field *fs = table->vers_start_field();
const Field *fe = table->vers_end_field();
@ -2278,7 +2282,7 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
add_table_options(thd, table, create_info_arg,
table_list->schema_table != 0, 0, packet);
if (table->versioned())
if (table->versioned() && !vers_hide)
{
packet->append(STRING_WITH_LEN(" WITH SYSTEM VERSIONING"));
}