mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-19338 InnoDB: Failing assertion: !cursor->index->is_committed()
Call mark_columns_per_binlog_row_image before find_row() to set up table->vcol_set early, so the virtual column value will be updated after record read (ha_rnd_pos/ha_index_next/etc) by table->update_virtual_fields() call
This commit is contained in:
27
mysql-test/suite/rpl/t/rpl_row_virt.test
Normal file
27
mysql-test/suite/rpl/t/rpl_row_virt.test
Normal file
@@ -0,0 +1,27 @@
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/master-slave.inc
|
||||
--source include/have_innodb.inc
|
||||
connection master;
|
||||
|
||||
create table t1 (
|
||||
id int auto_increment,
|
||||
data varchar(32),
|
||||
virt tinyint as (1),
|
||||
primary key (id),
|
||||
key virt (virt)
|
||||
) engine=innodb default charset=utf8mb4;
|
||||
|
||||
insert into t1 (data) values ('broken');
|
||||
|
||||
update t1 set data='more broken';
|
||||
|
||||
--sync_slave_with_master
|
||||
|
||||
select * from t1;
|
||||
|
||||
--connection master
|
||||
drop table t1;
|
||||
|
||||
--sync_slave_with_master
|
||||
|
||||
--source include/rpl_end.inc
|
Reference in New Issue
Block a user