mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-11706 Assertion `is_stat_field || !table || (!table->write_set || bitmap_is_set(table->write_set, field_index) || (table->vcol_set && bitmap_is_set(table->vcol_set, field_index)))' failed in Field_time::store_TIME_with_warning
vcols and triggers. Revert 094f4cf778
,
backport the correct fix (Table_triggers_list::mark_fields_used() not
marking vcols) from 10.2.
This commit is contained in:
@ -569,9 +569,7 @@ int mysql_update(THD *thd,
|
||||
while (!(error=info.read_record(&info)) && !thd->killed)
|
||||
{
|
||||
if (table->vfield)
|
||||
update_virtual_fields(thd, table,
|
||||
table->triggers ? VCOL_UPDATE_ALL :
|
||||
VCOL_UPDATE_FOR_READ);
|
||||
update_virtual_fields(thd, table, VCOL_UPDATE_FOR_READ);
|
||||
thd->examined_row_count++;
|
||||
if (!select || (error= select->skip_record(thd)) > 0)
|
||||
{
|
||||
@ -695,9 +693,7 @@ int mysql_update(THD *thd,
|
||||
while (!(error=info.read_record(&info)) && !thd->killed)
|
||||
{
|
||||
if (table->vfield)
|
||||
update_virtual_fields(thd, table,
|
||||
table->triggers ? VCOL_UPDATE_ALL :
|
||||
VCOL_UPDATE_FOR_READ);
|
||||
update_virtual_fields(thd, table, VCOL_UPDATE_FOR_READ);
|
||||
thd->examined_row_count++;
|
||||
if (!select || select->skip_record(thd) > 0)
|
||||
{
|
||||
@ -2235,10 +2231,7 @@ int multi_update::do_updates()
|
||||
{
|
||||
int error;
|
||||
if (table->vfield &&
|
||||
update_virtual_fields(thd, table,
|
||||
(table->triggers ?
|
||||
VCOL_UPDATE_ALL :
|
||||
VCOL_UPDATE_FOR_WRITE)))
|
||||
update_virtual_fields(thd, table, VCOL_UPDATE_FOR_WRITE))
|
||||
goto err2;
|
||||
if ((error= cur_table->view_check_option(thd, ignore)) !=
|
||||
VIEW_CHECK_OK)
|
||||
|
Reference in New Issue
Block a user