~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
--source include/have_ucs2.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 LENGTH() function with Japanese character in ucs2 encoding
20
#
21
22
SET NAMES ujis;
23
SET character_set_database = ucs2;
24
SET collation_connection = ucs2_general_ci;
25
26
CREATE TABLE `£Ô£±` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = innodb;
27
CREATE TABLE `£Ô£²` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = innodb;
28
CREATE TABLE `£Ô£³` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = innodb;
29
CREATE TABLE `£Ô£Ž` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = myisam;
30
CREATE TABLE `£Ô£µ` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = myisam;
31
CREATE TABLE `£Ô£¶` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = myisam;
32
CREATE TABLE `£Ô£·` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = heap;
33
CREATE TABLE `£Ô£ž` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = heap;
34
CREATE TABLE `£Ô£¹` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = heap;
35
CREATE TABLE `£Ô£±£°` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = bdb;
36
CREATE TABLE `£Ô£±£±` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = bdb;
37
CREATE TABLE `£Ô£±£²` (`£Ã£±` char(5), INDEX(`£Ã£±`)) DEFAULT CHARSET = ucs2 engine = bdb;
38
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
INSERT INTO `£Ô£±£²` VALUES ('í܏íݏíޏíߏíà'),('í܏íݏíޏíß'),('í܏íݏíÞ'),('í܏íÝ'),('íÜ'),('');
51
52
#InnoDB
53
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£±`;
54
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£²`;
55
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£³`;
56
57
#MyISAM
58
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£Ž`;
59
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£µ`;
60
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£¶`;
61
62
#HEAP
63
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£·`;
64
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£ž`;
65
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£¹`;
66
67
#BDB
68
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£±£°`;
69
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£±£±`;
70
SELECT `£Ã£±`, LENGTH(`£Ã£±`) FROM `£Ô£±£²`;
71
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 `£Ô£±£±`;
83
DROP TABLE `£Ô£±£²`;