mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Test suites for engine testing, moved from test-extra so will be available
for general use. mysql-test/Makefile.am: Adding directories of additional test suites mysql-test/mysql-stress-test.pl: Adding check for additional errors checking during test run
This commit is contained in:
94
mysql-test/suite/engines/funcs/t/rpl_bit.test
Normal file
94
mysql-test/suite/engines/funcs/t/rpl_bit.test
Normal file
@ -0,0 +1,94 @@
|
||||
#############################################################################
|
||||
# Original Author: JBM #
|
||||
# Original Date: Sept/15/2005 #
|
||||
#############################################################################
|
||||
# Test: To test the replication of the bit field #
|
||||
#############################################################################
|
||||
# Change Author: JBM
|
||||
# Change Date: 2006-01-16
|
||||
# Change: Added Order by for NDB
|
||||
##########
|
||||
|
||||
-- source include/master-slave.inc
|
||||
|
||||
|
||||
# Begin clean up test section
|
||||
connection master;
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
--enable_warnings
|
||||
# End of cleanup
|
||||
|
||||
# Begin test section 1
|
||||
|
||||
CREATE TABLE test.t1 (
|
||||
dummyKey INTEGER NOT NULL,
|
||||
f01 TINYINT,
|
||||
f10 TINYINT,
|
||||
f12 TINYINT,
|
||||
f15 TINYINT,
|
||||
f16 TINYINT,
|
||||
f7 TINYINT,
|
||||
f9 TINYINT,
|
||||
f29 TINYINT,
|
||||
f0 TINYINT,
|
||||
fA1 TINYINT,
|
||||
C32 TINYINT,
|
||||
A42 TINYINT,
|
||||
CA3 TINYINT,
|
||||
A044 TINYINT,
|
||||
f001 TINYINT,
|
||||
A3002 TINYINT,
|
||||
fC003 TINYINT,
|
||||
CA300 TINYINT,
|
||||
A305 TINYINT,
|
||||
CA321 TINYINT,
|
||||
r001 TINYINT,
|
||||
bit1 BIT(6),
|
||||
bit2 BIT(6),
|
||||
bit3 BIT(6),
|
||||
State1 TINYINT,
|
||||
State2 TINYINT,
|
||||
State3 TINYINT,
|
||||
State4 TINYINT,
|
||||
SubState TINYINT,
|
||||
gState TINYINT,
|
||||
oSupp TINYINT,
|
||||
tSupp TINYINT,
|
||||
sSuppD TINYINT,
|
||||
mSuppf TINYINT,
|
||||
GSuppDf TINYINT,
|
||||
VNotSupp TINYINT,
|
||||
x034 TINYINT,
|
||||
PRIMARY KEY USING HASH (dummyKey) );
|
||||
|
||||
LOCK TABLES test.t1 WRITE;
|
||||
INSERT 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);
|
||||
INSERT 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);
|
||||
INSERT 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);
|
||||
INSERT 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);
|
||||
INSERT 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);
|
||||
INSERT 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);
|
||||
INSERT 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);
|
||||
INSERT 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);
|
||||
UNLOCK TABLES;
|
||||
|
||||
|
||||
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1;
|
||||
SELECT hex(bit1) FROM test.t1 ORDER BY bit1;
|
||||
SELECT hex(bit2) from test.t1 ORDER BY bit2;
|
||||
SELECT hex(bit3) from test.t1 ORDER BY bit3;
|
||||
save_master_pos;
|
||||
|
||||
connection slave;
|
||||
sync_with_master;
|
||||
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1;
|
||||
SELECT hex(bit1) FROM test.t1 ORDER BY bit1;
|
||||
SELECT hex(bit2) from test.t1 ORDER BY bit2;
|
||||
SELECT hex(bit3) from test.t1 ORDER BY bit3;
|
||||
|
||||
connection master;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
sync_slave_with_master;
|
||||
|
||||
# End of 5.0 test case
|
Reference in New Issue
Block a user