1
#############################################################################
2
# Original Author: JBM #
3
# Original Date: Aug/18/2005 #
4
#############################################################################
5
# TEST: To test the LOAD_FILE() in rbr #
6
#############################################################################
8
# Change Date: 2006-01-16
9
# Change: Added Order by for NDB
13
-- source include/master-slave.inc
16
# Begin clean up test section
19
DROP PROCEDURE IF EXISTS test.p1;
20
DROP TABLE IF EXISTS test.t1;
25
CREATE TABLE test.t1 (a INT, blob_column LONGBLOB, PRIMARY KEY(a));
26
INSERT INTO test.t1 VALUES(1,'test');
27
UPDATE test.t1 SET blob_column=LOAD_FILE('../std_data_ln/words2.dat') WHERE a=1;
29
create procedure test.p1()
31
INSERT INTO test.t1 VALUES(2,'test');
32
UPDATE test.t1 SET blob_column=LOAD_FILE('../std_data_ln/words2.dat') WHERE a=2;
37
SELECT * FROM test.t1 ORDER BY blob_column;
39
sync_slave_with_master;
41
# Need to allow some time when NDB engine is used for
42
# the injector thread to have time to populate binlog
43
let $wait_condition= SELECT INSTR(blob_column,'aberration') > 0 FROM test.t1 WHERE a = 2;
44
--source include/wait_condition.inc
45
SELECT * FROM test.t1 ORDER BY blob_column;
49
DROP PROCEDURE IF EXISTS test.p1;
51
sync_slave_with_master;
53
# End of 5.0 test case