1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +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:
Aleksey Midenkov
2020-05-29 11:45:19 +03:00
parent 278facee7c
commit 57f7b4866f
18 changed files with 68 additions and 33 deletions

View File

@ -11265,6 +11265,13 @@ bool Field::save_in_field_default_value(bool view_error_processing)
{
THD *thd= table->in_use;
/*
TODO: MDEV-19597 Refactor TABLE::vers_update_fields() via stored virtual columns
This condition will go away as well as other conditions with vers_sys_field().
*/
if (vers_sys_field())
return false;
if (unlikely(flags & NO_DEFAULT_VALUE_FLAG &&
real_type() != MYSQL_TYPE_ENUM))
{