mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
BUG#22550 (Replication of BIT column failing):
Adding test case.
This commit is contained in:
@ -99,4 +99,24 @@ a
|
||||
7
|
||||
8
|
||||
9
|
||||
DROP TABLE t1;
|
||||
================ Test for BUG#22550 ================
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
CREATE TABLE t1 (a BIT(1), b INT) ENGINE=MYISAM;
|
||||
INSERT INTO t1 VALUES(1,2);
|
||||
SELECT HEX(a),b FROM t1;
|
||||
HEX(a) b
|
||||
1 2
|
||||
SELECT HEX(a),b FROM t1;
|
||||
HEX(a) b
|
||||
1 2
|
||||
UPDATE t1 SET a=0 WHERE b=2;
|
||||
SELECT HEX(a),b FROM t1;
|
||||
HEX(a) b
|
||||
0 2
|
||||
SELECT HEX(a),b FROM t1;
|
||||
HEX(a) b
|
||||
0 2
|
||||
|
Reference in New Issue
Block a user