~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_bit.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
16
connection master;
 
17
--disable_warnings
 
18
DROP TABLE IF EXISTS test.t1;
 
19
--enable_warnings
 
20
# End of cleanup
 
21
 
 
22
# Begin test section 1
 
23
 
 
24
CREATE 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,
 
63
PRIMARY KEY USING HASH (dummyKey) );
 
64
 
 
65
LOCK TABLES test.t1 WRITE;
 
66
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);
 
67
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);
 
68
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);
 
69
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);
 
70
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);
 
71
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);
 
72
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);
 
73
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);
 
74
UNLOCK TABLES;
 
75
 
 
76
 
 
77
SELECT  oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1;
 
78
SELECT hex(bit1) FROM test.t1 ORDER BY bit1;
 
79
SELECT hex(bit2) from test.t1 ORDER BY bit2;
 
80
SELECT hex(bit3) from test.t1 ORDER BY bit3;
 
81
save_master_pos;
 
82
 
 
83
connection slave;
 
84
sync_with_master;
 
85
SELECT  oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1;
 
86
SELECT hex(bit1) FROM test.t1 ORDER BY bit1;
 
87
SELECT hex(bit2) from test.t1 ORDER BY bit2;
 
88
SELECT hex(bit3) from test.t1 ORDER BY bit3;
 
89
 
 
90
connection master;
 
91
DROP TABLE IF EXISTS test.t1;
 
92
sync_slave_with_master;
 
93
 
 
94
# End of 5.0 test case