1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-16804 SYSTEM VERSIONING columns not showing as GENERATED

Closes #830
This commit is contained in:
Aleksey Midenkov
2019-05-20 19:08:03 +02:00
committed by Sergei Golubchik
parent 4a3d51c76c
commit 2e73561c6c
4 changed files with 156 additions and 2 deletions

View File

@ -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);
}