1
by brian
clean slate |
1 |
source include/master-slave.inc; |
2 |
--disable_warnings |
|
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 */; |
|
8 |
use mysqltest1; |
|
9 |
drop table if exists t1; |
|
10 |
--enable_warnings |
|
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; |
|
23 |
save_master_pos; |
|
24 |
connection slave; |
|
25 |
sync_with_master; |
|
26 |
use mysqltest1; |
|
27 |
select "--- on slave ---"; |
|
28 |
select hex(a),b from t1 order by b; |
|
29 |
connection master; |
|
30 |
drop database mysqltest1; |
|
31 |
save_master_pos; |
|
32 |
connection slave; |
|
33 |
sync_with_master; |
|
34 |
||
35 |
# End of 4.1 tests
|