--source include/have_innodb.inc set binlog_format='row'; create table users(userID int not null primary key, f1 varchar(255)); insert into users values(1, "foo"); delimiter |; create procedure p1() begin IF EXISTS(SELECT * from users WHERE userID = 1) THEN select 1; end if; end | delimiter ;| begin; call p1(); connect (addconroot, localhost, root,,); connection addconroot; set binlog_format='row'; UPDATE users SET userID = 2 WHERE userID = 1;