mirror of
https://github.com/MariaDB/server.git
synced 2025-02-09 23:24:11 +01:00
![Nikita Malyavin](/assets/img/avatar_default.png)
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
27 lines
510 B
Text
27 lines
510 B
Text
--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
|