mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-16937 Strict SQL with system versioned tables causes issues (10.4)
Respect system fields in NO_ZERO_DATE mode. This is the subject for refactoring in MDEV-19597 Conflict resolution from 7d5223310789f967106d86ce193ef31b315ecff0
This commit is contained in:
@@ -8686,7 +8686,7 @@ bool TABLE::validate_default_values_of_unset_fields(THD *thd) const
|
||||
for (Field **fld= field; *fld; fld++)
|
||||
{
|
||||
if (!bitmap_is_set(write_set, (*fld)->field_index) &&
|
||||
!((*fld)->flags & NO_DEFAULT_VALUE_FLAG))
|
||||
!((*fld)->flags & (NO_DEFAULT_VALUE_FLAG | VERS_SYSTEM_FIELD)))
|
||||
{
|
||||
if (!(*fld)->is_null_in_record(s->default_values) &&
|
||||
(*fld)->validate_value_in_record_with_warn(thd, s->default_values) &&
|
||||
|
Reference in New Issue
Block a user