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; 24sync_slave_with_master; 25connection slave; 26SELECT * FROM test.t1 ORDER BY blob_column; 27 28# Cleanup 29connection master; 30DROP PROCEDURE IF EXISTS test.p1; 31DROP TABLE test.t1; 32sync_slave_with_master; 33