Debian Codegraph @

mysql-test/suite/rpl/t/rpl_row_utf16.test

raw
1 -- source include/have_binlog_format_row.inc
2 -- source include/have_utf16.inc
3 -- source include/master-slave.inc
4
5 #
6 # BUG#51716: Char column with utf16 character set gives wrong padding on slave
7 #
8
9 CREATE TABLE t1(c1 CHAR(10) CHARACTER SET utf16 DEFAULT 'ola');
10 INSERT INTO t1 VALUES ('abc'); # explicit value is inserted and encoded correctly
11 INSERT INTO t1 VALUES (); # default value is inserted and encoded correctly
12
13 --query_vertical SELECT c1, hex(c1) from t1
14
15 -- sync_slave_with_master
16
17 --query_vertical SELECT c1, hex(c1) FROM t1
18
19 # assertion: tables don't differ
20 -- let $diff_tables=master:t1,slave:t1
21 -- source include/diff_tables.inc
22
23 --connection master
24 DROP TABLE t1;
25
26 --source include/rpl_end.inc