mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
SQL: switch_defaults_to_nullable_trigger_fields() fix [#355]
This commit is contained in:
@ -8116,7 +8116,7 @@ void switch_defaults_to_nullable_trigger_fields(TABLE *table)
|
||||
Field **trigger_field= table->field_to_fill();
|
||||
|
||||
/* True if we have NOT NULL fields and BEFORE triggers */
|
||||
if (trigger_field != table->field)
|
||||
if (*trigger_field != *table->field)
|
||||
{
|
||||
for (Field **field_ptr= table->default_field; *field_ptr ; field_ptr++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user