1# Begin clean up test section 2--disable_warnings 3connection master; 4DROP PROCEDURE IF EXISTS test.p1; 5DROP TABLE IF EXISTS test.t1; 6--enable_warnings 7 8# Section 1 test 9 10CREATE TABLE test.t1 (a INT, blob_column LONGBLOB, PRIMARY KEY(a)); 11INSERT INTO test.t1 VALUES(1,'test'); 12UPDATE test.t1 SET blob_column=LOAD_FILE('../../std_data/words2.dat') WHERE a=1; 13delimiter |; 14create procedure test.p1() 15begin 16 INSERT INTO test.t1 VALUES(2,'test'); 17 UPDATE test.t1 SET blob_column=LOAD_FILE('../../std_data/words2.dat') WHERE a=2; 18end| 19delimiter ;| 20 21CALL test.p1(); 22SELECT * FROM test.t1 ORDER BY blob_column; 23save_master_pos; 24--source include/sync_slave_sql_with_master.inc 25connection slave; 26# Need to allow some time when NDB engine is used for 27# the injector thread to have time to populate binlog 28let $wait_condition= SELECT INSTR(blob_column,'aberration') > 0 FROM test.t1 WHERE a = 2; 29--source include/wait_condition.inc 30SELECT * FROM test.t1 ORDER BY blob_column; 31 32# Cleanup 33connection master; 34DROP PROCEDURE IF EXISTS test.p1; 35DROP TABLE test.t1; 36--source include/sync_slave_sql_with_master.inc 37