config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/jp/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/jp/t/jp_enum_ujis.test

#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_ujis.inc
--source include/have_innodb.inc

--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 ujis encoding
#

SET NAMES ujis;
SET character_set_database = ujis;

CREATE TABLE `」ヤ」ア` (`」テ」ア` ENUM('竺','軸','宍'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `」ヤ」イ` (`」テ」ア` ENUM('、「','、、','、ヲ'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `」ヤ」ウ` (`」テ」ア` ENUM('常ワ','常ン','常゙'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `」ヤ」エ` (`」テ」ア` ENUM('竺','軸','宍'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `」ヤ」オ` (`」テ」ア` ENUM('、「','、、','、ヲ'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `」ヤ」カ` (`」テ」ア` ENUM('常ワ','常ン','常゙'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `」ヤ」キ` (`」テ」ア` ENUM('竺','軸','宍'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `」ヤ」ク` (`」テ」ア` ENUM('、「','、、','、ヲ'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `」ヤ」ケ` (`」テ」ア` ENUM('常ワ','常ン','常゙'), INDEX(`」テ」ア`)) DEFAULT CHARSET = ujis 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
#

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 `」ヤ」ケ`;

Man Man