mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
sql_insert.cc:
After merge fix.
This commit is contained in:
@ -1262,12 +1262,6 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
|
|||||||
compare_record(table))
|
compare_record(table))
|
||||||
{
|
{
|
||||||
info->updated++;
|
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
|
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
|
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 &&
|
trg_error= (table->triggers &&
|
||||||
table->triggers->process_triggers(thd, TRG_EVENT_UPDATE,
|
table->triggers->process_triggers(thd, TRG_EVENT_UPDATE,
|
||||||
TRG_ACTION_AFTER, TRUE));
|
TRG_ACTION_AFTER, TRUE));
|
||||||
|
info->copied++;
|
||||||
|
}
|
||||||
|
|
||||||
goto ok_or_after_trg_err;
|
goto ok_or_after_trg_err;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user