~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
--source include/have_ujis.inc
2
3
--disable_warnings
4
drop table if exists `£Ô£±`;
5
drop table if exists `£Ô£²`;
6
drop table if exists `£Ô£³`;
7
drop table if exists `£Ô£Ž`;
8
drop table if exists `£Ô£µ`;
9
drop table if exists `£Ô£¶`;
10
drop table if exists `£Ô£·`;
11
drop table if exists `£Ô£ž`;
12
drop table if exists `£Ô£¹`;
13
drop table if exists `£Ô£±£°`;
14
drop table if exists `£Ô£±£±`;
15
drop table if exists `£Ô£±£²`;
16
--enable_warnings
17
18
#
19
# Test LPAD() function with Japanese character in ujis encoding
20
#
21
22
SET NAMES ujis;
23
SET character_set_database = ujis;
24
25
CREATE TABLE `£Ô£±` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
26
CREATE TABLE `£Ô£²` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
27
CREATE TABLE `£Ô£³` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
28
CREATE TABLE `£Ô£Ž` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
29
CREATE TABLE `£Ô£µ` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
30
CREATE TABLE `£Ô£¶` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
31
CREATE TABLE `£Ô£·` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = heap;
32
CREATE TABLE `£Ô£ž` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = heap;
33
CREATE TABLE `£Ô£¹` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = heap;
34
CREATE TABLE `£Ô£±£°` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = bdb;
35
CREATE TABLE `£Ô£±£±` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = bdb;
36
CREATE TABLE `£Ô£±£²` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = bdb;
37
38
INSERT INTO `£Ô£±` VALUES ('Ž±Ž²Ž³ŽŽŽµ'),('Ž±Ž²Ž³ŽŽ'),('Ž±Ž²Ž³'),('Ž±Ž²'),('Ž±'),('');
39
INSERT INTO `£Ô£²` VALUES ('€¢€€€Š€š€ª'),('€¢€€€Š€š'),('€¢€€€Š'),('€¢€€'),('€¢'),('');
40
INSERT INTO `£Ô£³` VALUES ('í܏íݏíޏíߏíà'),('í܏íݏíޏíß'),('í܏íݏíÞ'),('í܏íÝ'),('íÜ'),('');
41
INSERT INTO `£Ô£Ž` VALUES ('Ž±Ž²Ž³ŽŽŽµ'),('Ž±Ž²Ž³ŽŽ'),('Ž±Ž²Ž³'),('Ž±Ž²'),('Ž±'),('');
42
INSERT INTO `£Ô£µ` VALUES ('€¢€€€Š€š€ª'),('€¢€€€Š€š'),('€¢€€€Š'),('€¢€€'),('€¢'),('');
43
INSERT INTO `£Ô£¶` VALUES ('í܏íݏíޏíߏíà'),('í܏íݏíޏíß'),('í܏íݏíÞ'),('í܏íÝ'),('íÜ'),('');
44
INSERT INTO `£Ô£·` VALUES ('Ž±Ž²Ž³ŽŽŽµ'),('Ž±Ž²Ž³ŽŽ'),('Ž±Ž²Ž³'),('Ž±Ž²'),('Ž±'),('');
45
INSERT INTO `£Ô£ž` VALUES ('€¢€€€Š€š€ª'),('€¢€€€Š€š'),('€¢€€€Š'),('€¢€€'),('€¢'),('');
46
INSERT INTO `£Ô£¹` VALUES ('í܏íݏíޏíߏíà'),('í܏íݏíޏíß'),('í܏íݏíÞ'),('í܏íÝ'),('íÜ'),('');
47
INSERT INTO `£Ô£±£°` VALUES ('Ž±Ž²Ž³ŽŽŽµ'),('Ž±Ž²Ž³ŽŽ'),('Ž±Ž²Ž³'),('Ž±Ž²'),('Ž±'),('');
48
INSERT INTO `£Ô£±£±` VALUES ('€¢€€€Š€š€ª'),('€¢€€€Š€š'),('€¢€€€Š'),('€¢€€'),('€¢'),('');
49
INSERT INTO `£Ô£±£²` VALUES ('í܏íݏíޏíߏíà'),('í܏íݏíޏíß'),('í܏íݏíÞ'),('í܏íÝ'),('íÜ'),('');
50
51
#InnoDB
52
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'Ž¡') FROM `£Ô£±`;
53
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'£Ø') FROM `£Ô£²`;
54
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'°¢') FROM `£Ô£³`;
55
56
#MyISAM
57
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'Ž¡') FROM `£Ô£Ž`;
58
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'£Ø') FROM `£Ô£µ`;
59
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'°¢' ) FROM `£Ô£¶`;
60
61
#HEAP
62
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'Ž¡') FROM `£Ô£·`;
63
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'£Ø') FROM `£Ô£ž`;
64
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'°¢' ) FROM `£Ô£¹`;
65
66
#BDB
67
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'Ž¡') FROM `£Ô£±£°`;
68
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'£Ø') FROM `£Ô£±£±`;
69
SELECT `£Ã£±`, LPAD(`£Ã£±`,5,'°¢' ) FROM `£Ô£±£²`;
70
71
DROP TABLE `£Ô£±`;
72
DROP TABLE `£Ô£²`;
73
DROP TABLE `£Ô£³`;
74
DROP TABLE `£Ô£Ž`;
75
DROP TABLE `£Ô£µ`;
76
DROP TABLE `£Ô£¶`;
77
DROP TABLE `£Ô£·`;
78
DROP TABLE `£Ô£ž`;
79
DROP TABLE `£Ô£¹`;
80
DROP TABLE `£Ô£±£°`;
81
DROP TABLE `£Ô£±£±`;
82
DROP TABLE `£Ô£±£²`;