mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-29833 CREATE ... SELECT system_versioned_table causes invalid defaults
ROW START/END fields shold have no default value
This commit is contained in:
@ -3793,7 +3793,8 @@ without_overlaps_err:
|
||||
}
|
||||
if (sql_field->invisible == INVISIBLE_USER &&
|
||||
sql_field->flags & NOT_NULL_FLAG &&
|
||||
sql_field->flags & NO_DEFAULT_VALUE_FLAG)
|
||||
sql_field->flags & NO_DEFAULT_VALUE_FLAG &&
|
||||
!sql_field->vers_sys_field())
|
||||
{
|
||||
my_error(ER_INVISIBLE_NOT_NULL_WITHOUT_DEFAULT, MYF(0),
|
||||
sql_field->field_name.str);
|
||||
|
Reference in New Issue
Block a user