#Server variable option 'lower_case_table_names' sets '0' as default value #in case sensitive filesystem. Using 'lower_case_table_names=0' in case of #insensitive filsystem is not allowed. -- source include/have_case_sensitive_file_system.inc --source include/have_ucs2.inc --source include/have_innodb.inc # half-with kana is not handled correctly in 4.1 # because of bug #5174 # It will be fixed in 5.0 --disable_warnings drop table if exists `」ヤ」ア`; drop table if exists `」ヤ」イ`; drop table if exists `」ヤ」ウ`; drop table if exists `」ヤ」エ`; drop table if exists `」ヤ」オ`; drop table if exists `」ヤ」カ`; drop table if exists `」ヤ」キ`; drop table if exists `」ヤ」ク`; drop table if exists `」ヤ」ケ`; --enable_warnings # # Test ENUM values with Japanese characters in ucs2 encoding # SET NAMES ujis; SET character_set_database = ucs2; SET collation_connection = ucs2_general_ci; CREATE TABLE `」ヤ」ア` (`」テ」ア` ENUM('竺','軸','宍'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = innodb; CREATE TABLE `」ヤ」イ` (`」テ」ア` ENUM('、「','、、','、ヲ'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = innodb; CREATE TABLE `」ヤ」ウ` (`」テ」ア` ENUM('常ワ','常ン','常゙'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = innodb; CREATE TABLE `」ヤ」エ` (`」テ」ア` ENUM('竺','軸','宍'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `」ヤ」オ` (`」テ」ア` ENUM('、「','、、','、ヲ'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `」ヤ」カ` (`」テ」ア` ENUM('常ワ','常ン','常゙'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `」ヤ」キ` (`」テ」ア` ENUM('竺','軸','宍'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = MEMORY; CREATE TABLE `」ヤ」ク` (`」テ」ア` ENUM('、「','、、','、ヲ'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = MEMORY; CREATE TABLE `」ヤ」ケ` (`」テ」ア` ENUM('常ワ','常ン','常゙'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ucs2 engine = MEMORY; INSERT INTO `」ヤ」ア` VALUES ('竺'),('軸'),('宍'); INSERT INTO `」ヤ」イ` VALUES ('、「'),('、、'),('、ヲ'); INSERT INTO `」ヤ」ウ` VALUES ('常ワ'),('常ン'),('常゙'); INSERT INTO `」ヤ」エ` VALUES ('竺'),('軸'),('宍'); INSERT INTO `」ヤ」オ` VALUES ('、「'),('、、'),('、ヲ'); INSERT INTO `」ヤ」カ` VALUES ('常ワ'),('常ン'),('常゙'); INSERT INTO `」ヤ」キ` VALUES ('竺'),('軸'),('宍'); INSERT INTO `」ヤ」ク` VALUES ('、「'),('、、'),('、ヲ'); INSERT INTO `」ヤ」ケ` VALUES ('常ワ'),('常ン'),('常゙'); SELECT * FROM `」ヤ」ア`; SELECT * FROM `」ヤ」イ`; SELECT * FROM `」ヤ」ウ`; SELECT * FROM `」ヤ」エ`; SELECT * FROM `」ヤ」オ`; SELECT * FROM `」ヤ」カ`; SELECT * FROM `」ヤ」キ`; SELECT * FROM `」ヤ」ク`; SELECT * FROM `」ヤ」ケ`; SHOW CREATE TABLE `」ヤ」ア`; SHOW CREATE TABLE `」ヤ」イ`; SHOW CREATE TABLE `」ヤ」ウ`; SHOW CREATE TABLE `」ヤ」エ`; SHOW CREATE TABLE `」ヤ」オ`; SHOW CREATE TABLE `」ヤ」カ`; SHOW CREATE TABLE `」ヤ」キ`; SHOW CREATE TABLE `」ヤ」ク`; SHOW CREATE TABLE `」ヤ」ケ`; DESC `」ヤ」ア`; DESC `」ヤ」イ`; DESC `」ヤ」ウ`; DESC `」ヤ」エ`; DESC `」ヤ」オ`; DESC `」ヤ」カ`; DESC `」ヤ」キ`; DESC `」ヤ」ク`; DESC `」ヤ」ケ`; # # Test problem with enum values after the colum with NOT NULL restriction # Bug#7302 UCS2 data in ENUM field get truncated when new column is added ALTER TABLE `」ヤ」ア` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」イ` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」ウ` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」エ` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」オ` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」カ` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」キ` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」ク` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; ALTER TABLE `」ヤ」ケ` ADD `」テ」イ` CHAR(1) NOT NULL FIRST; SHOW CREATE TABLE `」ヤ」ア`; SHOW CREATE TABLE `」ヤ」イ`; SHOW CREATE TABLE `」ヤ」ウ`; SHOW CREATE TABLE `」ヤ」エ`; SHOW CREATE TABLE `」ヤ」オ`; SHOW CREATE TABLE `」ヤ」カ`; SHOW CREATE TABLE `」ヤ」キ`; SHOW CREATE TABLE `」ヤ」ク`; SHOW CREATE TABLE `」ヤ」ケ`; DESC `」ヤ」ア`; DESC `」ヤ」イ`; DESC `」ヤ」ウ`; DESC `」ヤ」エ`; DESC `」ヤ」オ`; DESC `」ヤ」カ`; DESC `」ヤ」キ`; DESC `」ヤ」ク`; DESC `」ヤ」ケ`; DROP TABLE `」ヤ」ア`; DROP TABLE `」ヤ」イ`; DROP TABLE `」ヤ」ウ`; DROP TABLE `」ヤ」エ`; DROP TABLE `」ヤ」オ`; DROP TABLE `」ヤ」カ`; DROP TABLE `」ヤ」キ`; DROP TABLE `」ヤ」ク`; DROP TABLE `」ヤ」ケ`;