1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-16974 Application-time periods: UPDATE

This commit is contained in:
Nikita Malyavin
2018-09-18 00:25:25 +10:00
committed by Sergei Golubchik
parent 47e28a94d5
commit b2bd52290a
8 changed files with 579 additions and 25 deletions

View File

@ -842,9 +842,11 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
{
error= table->delete_row();
ha_rows rows_inserted;
if (likely(!error) && table_list->has_period()
&& !portion_of_time_through_update)
error= table->insert_portion_of_time(thd, table_list->period_conditions);
error= table->insert_portion_of_time(thd, table_list->period_conditions,
&rows_inserted);
}
if (likely(!error))