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:
@ -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())
|
||||
|
Reference in New Issue
Block a user