1
drop table if exists t1;
2
SET GLOBAL log_bin_trust_function_creators = 1;
3
create table t1 (col1 integer primary key, col2 integer) engine=innodb;
4
insert t1 values (1,100);
6
select col2 from t1 where col1=1 for update;
9
update t1 set col2=0 where col1=1;
16
SET GLOBAL log_bin_trust_function_creators = 0;