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

MDEV-22660 SIGSEGV on adding system versioning and modifying system column

Second alter subcommand correctly removed VERS_ROW_END flag. We throw
ER_VERS_PERIOD_COLUMNS in such case.
This commit is contained in:
Aleksey Midenkov
2021-10-11 13:36:07 +03:00
parent 911c803db1
commit d31f953789
3 changed files with 47 additions and 0 deletions

View File

@ -7564,6 +7564,12 @@ bool Vers_parse_info::check_sys_fields(const Lex_table_name &table_name,
row_end= f;
}
if (!row_start || !row_end)
{
my_error(ER_VERS_PERIOD_COLUMNS, MYF(0), as_row.start.str, as_row.end.str);
return true;
}
if (!can_native ||
!row_start->is_some_bigint() ||
!row_end->is_some_bigint())