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

MDEV-22756 SQL Error (1364): Field 'DB_ROW_HASH_1' doesn't have a default value

exclude generated columns from the "has default value" check
This commit is contained in:
Sergei Golubchik
2023-04-28 11:25:31 +02:00
parent adbad5e36f
commit bc970573b3
3 changed files with 14 additions and 1 deletions

View File

@ -2134,7 +2134,7 @@ int check_that_all_fields_are_given_values(THD *thd, TABLE *entry, TABLE_LIST *t
for (Field **field=entry->field ; *field ; field++)
{
if (!bitmap_is_set(write_set, (*field)->field_index) &&
!(*field)->vers_sys_field() &&
!(*field)->vers_sys_field() && !(*field)->vcol_info &&
has_no_default_value(thd, *field, table_list) &&
((*field)->real_type() != MYSQL_TYPE_ENUM))
err=1;