Debian Codegraph @

mysql-test/suite/rpl/r/rpl_bit_npk.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 DROP TABLE IF EXISTS test.t1;
7 CREATE TABLE test.t1 (
8 dummyKey INTEGER NOT NULL,
9 f01 TINYINT,
10 f10 TINYINT,
11 f12 TINYINT,
12 f15 TINYINT,
13 f16 TINYINT,
14 f7 TINYINT,
15 f9 TINYINT,
16 f29 TINYINT,
17 f0 TINYINT,
18 fA1 TINYINT,
19 C32 TINYINT,
20 A42 TINYINT,
21 CA3 TINYINT,
22 A044 TINYINT,
23 f001 TINYINT,
24 A3002 TINYINT,
25 fC003 TINYINT,
26 CA300 TINYINT,
27 A305 TINYINT,
28 CA321 TINYINT,
29 r001 TINYINT,
30 bit1 BIT(6),
31 bit2 BIT(6),
32 bit3 BIT(6),
33 State1 TINYINT,
34 State2 TINYINT,
35 State3 TINYINT,
36 State4 TINYINT,
37 SubState TINYINT,
38 gState TINYINT,
39 oSupp TINYINT,
40 tSupp TINYINT,
41 sSuppD TINYINT,
42 mSuppf TINYINT,
43 GSuppDf TINYINT,
44 VNotSupp TINYINT,
45 x034 TINYINT);
46 LOCK TABLES test.t1 WRITE;
47 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,NULL,1);
48 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);
49 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);
50 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);
51 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,b'0',1,1,4,5,5,5,5,5,5,5,5,5,3,2,1);
52 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);
53 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);
54 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);
55 UNLOCK TABLES;
56 UPDATE test.t1 set x034 = 50 where bit3 = b'000000';
57 UPDATE test.t1 set VNotSupp = 33 where bit1 = b'0';
58 SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034
59 FROM test.t1
60 ORDER BY oSupp, sSuppD, GSuppDf, VNotSupp, x034;
61 oSupp sSuppD GSuppDf VNotSupp x034
62 5 5 3 NULL 1
63 5 5 3 2 1
64 5 5 3 2 50
65 5 5 3 33 1
66 5 5 3 33 1
67 5 5 3 33 1
68 5 5 3 33 1
69 5 5 3 33 1
70 SELECT hex(bit1) from test.t1 ORDER BY bit1;
71 hex(bit1)
72 0
73 0
74 0
75 0
76 0
77 2A
78 3F
79 3F
80 SELECT hex(bit2) from test.t1 ORDER BY bit2;
81 hex(bit2)
82 0
83 1
84 1
85 1
86 1
87 2A
88 3E
89 3F
90 SELECT hex(bit3) from test.t1 ORDER BY bit3;
91 hex(bit3)
92 0
93 1
94 1
95 1
96 1
97 15
98 24
99 35
100 include/sync_slave_sql_with_master.inc
101 SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034
102 FROM test.t1
103 ORDER BY oSupp, sSuppD, GSuppDf, VNotSupp, x034;
104 oSupp sSuppD GSuppDf VNotSupp x034
105 5 5 3 NULL 1
106 5 5 3 2 1
107 5 5 3 2 50
108 5 5 3 33 1
109 5 5 3 33 1
110 5 5 3 33 1
111 5 5 3 33 1
112 5 5 3 33 1
113 SELECT hex(bit1) from test.t1 ORDER BY bit1;
114 hex(bit1)
115 0
116 0
117 0
118 0
119 0
120 2A
121 3F
122 3F
123 SELECT hex(bit2) from test.t1 ORDER BY bit2;
124 hex(bit2)
125 0
126 1
127 1
128 1
129 1
130 2A
131 3E
132 3F
133 SELECT hex(bit3) from test.t1 ORDER BY bit3;
134 hex(bit3)
135 0
136 1
137 1
138 1
139 1
140 15
141 24
142 35
143 CREATE TABLE test.t2 (a INT, b BIT(1));
144 INSERT INTO test.t2 VALUES (1, b'0');
145 INSERT INTO test.t2 VALUES (1, b'1');
146 UPDATE test.t2 SET a = 2 WHERE b = b'1';
147 CREATE TABLE test.t3 (a INT, b INT);
148 INSERT INTO test.t3 VALUES (1, NULL);
149 INSERT INTO test.t3 VALUES (1, 0);
150 UPDATE test.t3 SET a = 2 WHERE b = 0;
151 SELECT a, hex(b) FROM test.t2 ORDER BY a,b;
152 a hex(b)
153 1 0
154 2 1
155 SELECT * FROM test.t3 ORDER BY a,b;
156 a b
157 1 NULL
158 2 0
159 include/sync_slave_sql_with_master.inc
160 SELECT a, hex(b) FROM test.t2 ORDER BY a,b;
161 a hex(b)
162 1 0
163 2 1
164 SELECT * FROM test.t3 ORDER BY a,b;
165 a b
166 1 NULL
167 2 0
168 DROP TABLE IF EXISTS test.t1;
169 DROP TABLE IF EXISTS test.t2;
170 DROP TABLE IF EXISTS test.t3;
171 include/sync_slave_sql_with_master.inc
172 include/rpl_end.inc