1
source include/master-slave.inc;
3
drop database if exists mysqltest1;
4
# 4.1 bases its conversion on the db's charset,
5
# while 4.0 uses the part of "SET CHARACTER SET" after "_".
6
# So for 4.1 we add a clause to CREATE DATABASE.
7
create database mysqltest1 /*!40100 character set latin2 */;
9
drop table if exists t1;
11
create table t1 (a varchar(255) character set latin2, b varchar(4));
12
SET CHARACTER SET cp1250_latin2;
13
INSERT INTO t1 VALUES ('�����','80');
14
INSERT INTO t1 VALUES ('�����','90');
15
INSERT INTO t1 VALUES ('����','A0');
16
INSERT INTO t1 VALUES ('������','B0');
17
INSERT INTO t1 VALUES ('����������������','C0');
18
INSERT INTO t1 VALUES ('����������������','D0');
19
INSERT INTO t1 VALUES ('����������������','E0');
20
INSERT INTO t1 VALUES ('����������������','F0');
21
select "--- on master ---";
22
select hex(a),b from t1 order by b;
27
select "--- on slave ---";
28
select hex(a),b from t1 order by b;
30
drop database mysqltest1;