1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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:
Sergei Golubchik
2022-10-20 12:34:33 +02:00
parent 768a10d02a
commit 1f7840088f
6 changed files with 25 additions and 30 deletions

View File

@ -8084,7 +8084,7 @@ static Create_field *vers_init_sys_field(THD *thd, const char *field_name, int f
f->field_name.str= field_name;
f->field_name.length= strlen(field_name);
f->charset= system_charset_info;
f->flags= flags | NOT_NULL_FLAG;
f->flags= flags | NO_DEFAULT_VALUE_FLAG | NOT_NULL_FLAG;
if (integer)
{
DBUG_ASSERT(0); // Not implemented yet