1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

SQL: DEFAULT value for system fields [closes #376]

This commit is contained in:
Aleksey Midenkov
2017-12-10 23:52:51 +03:00
parent 2968543f8d
commit b7cd182896
3 changed files with 19 additions and 8 deletions

View File

@ -8045,6 +8045,8 @@ fill_record(THD *thd, TABLE *table_arg, List<Item> &fields, List<Item> &values,
if (table->versioned() && rfield->vers_sys_field() &&
!ignore_errors)
{
if (type == Item::DEFAULT_VALUE_ITEM)
continue;
my_error(ER_VERS_READONLY_FIELD, MYF(0), rfield->field_name.str);
goto err;
}