mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
sql_insert.cc:
After merge fix.
This commit is contained in:
parent
37add3b661
commit
41c732493e
1 changed files with 12 additions and 16 deletions
|
@ -1262,12 +1262,6 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
|
|||
compare_record(table))
|
||||
{
|
||||
info->updated++;
|
||||
trg_error= (table->triggers &&
|
||||
table->triggers->process_triggers(thd, TRG_EVENT_UPDATE,
|
||||
TRG_ACTION_AFTER,
|
||||
TRUE));
|
||||
info->copied++;
|
||||
}
|
||||
/*
|
||||
If ON DUP KEY UPDATE updates a row instead of inserting one, it's
|
||||
like a regular UPDATE statement: it should not affect the value of a
|
||||
|
@ -1282,6 +1276,8 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
|
|||
trg_error= (table->triggers &&
|
||||
table->triggers->process_triggers(thd, TRG_EVENT_UPDATE,
|
||||
TRG_ACTION_AFTER, TRUE));
|
||||
info->copied++;
|
||||
}
|
||||
|
||||
goto ok_or_after_trg_err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue