1############################################################################# 2# Original Author: JBM # 3# Original Date: Sept/15/2005 # 4############################################################################# 5# Test: To test the replication of the bit field # 6############################################################################# 7# Change Author: JBM 8# Change Date: 2006-01-16 9# Change: Added Order by for NDB 10########## 11 12-- source include/master-slave.inc 13 14 15# Begin clean up test section 16connection master; 17--disable_warnings 18DROP TABLE IF EXISTS test.t1; 19--enable_warnings 20# End of cleanup 21 22# Begin test section 1 23 24CREATE TABLE test.t1 ( 25 dummyKey INTEGER NOT NULL, 26 f01 TINYINT, 27 f10 TINYINT, 28 f12 TINYINT, 29 f15 TINYINT, 30 f16 TINYINT, 31 f7 TINYINT, 32 f9 TINYINT, 33 f29 TINYINT, 34 f0 TINYINT, 35 fA1 TINYINT, 36 C32 TINYINT, 37 A42 TINYINT, 38 CA3 TINYINT, 39 A044 TINYINT, 40 f001 TINYINT, 41 A3002 TINYINT, 42 fC003 TINYINT, 43 CA300 TINYINT, 44 A305 TINYINT, 45 CA321 TINYINT, 46 r001 TINYINT, 47 bit1 BIT(6), 48 bit2 BIT(6), 49 bit3 BIT(6), 50 State1 TINYINT, 51 State2 TINYINT, 52 State3 TINYINT, 53 State4 TINYINT, 54 SubState TINYINT, 55 gState TINYINT, 56 oSupp TINYINT, 57 tSupp TINYINT, 58 sSuppD TINYINT, 59 mSuppf TINYINT, 60 GSuppDf TINYINT, 61 VNotSupp TINYINT, 62 x034 TINYINT, 63PRIMARY KEY USING HASH (dummyKey) ); 64 65LOCK TABLES test.t1 WRITE; 66INSERT INTO test.t1 VALUES (6,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'111111',b'111110',b'110101',4,5,5,5,5,5,5,5,5,5,3,2,1); 67INSERT INTO test.t1 VALUES (1,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'111111',b'000000',b'100100',4,5,5,5,5,5,5,5,5,5,3,2,1); 68INSERT INTO test.t1 VALUES (2,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'000000',b'101010',b'010101',4,5,5,5,5,5,5,5,5,5,3,2,1); 69INSERT INTO test.t1 VALUES (3,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,b'101010',b'111111',b'000000',4,5,5,5,5,5,5,5,5,5,3,2,1); 70INSERT INTO test.t1 VALUES (4,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4,5,5,5,5,5,5,5,5,5,3,2,1); 71INSERT INTO test.t1 VALUES (5,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4,5,5,5,5,5,5,5,5,5,3,2,1); 72INSERT INTO test.t1 VALUES (7,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4,5,5,5,5,5,5,5,5,5,3,2,1); 73INSERT INTO test.t1 VALUES (8,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4,5,5,5,5,5,5,5,5,5,3,2,1); 74UNLOCK TABLES; 75 76 77SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1; 78SELECT hex(bit1) FROM test.t1 ORDER BY bit1; 79SELECT hex(bit2) from test.t1 ORDER BY bit2; 80SELECT hex(bit3) from test.t1 ORDER BY bit3; 81--source include/sync_slave_sql_with_master.inc 82 83SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1; 84SELECT hex(bit1) FROM test.t1 ORDER BY bit1; 85SELECT hex(bit2) from test.t1 ORDER BY bit2; 86SELECT hex(bit3) from test.t1 ORDER BY bit3; 87 88connection master; 89DROP TABLE IF EXISTS test.t1; 90--source include/sync_slave_sql_with_master.inc 91 92# End of 5.0 test case 93--source include/rpl_end.inc 94