mariadb/mysql-test/suite/jp/t/jp_enum_ucs2.test

120 lines
3.6 KiB
Text
Raw Normal View History

--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 `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
--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 `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><><EFBFBD>','<27><><EFBFBD>','<27><><EFBFBD>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><><EFBFBD>','<27><><EFBFBD>','<27><><EFBFBD>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><><EFBFBD>','<27><><EFBFBD>','<27><><EFBFBD>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD>'),('<27><><EFBFBD>'),('<27><><EFBFBD>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD>'),('<27><><EFBFBD>'),('<27><><EFBFBD>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD>'),('<27><><EFBFBD>'),('<27><><EFBFBD>');
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
#
# 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 `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
ALTER TABLE `<60>ԣ<EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
SHOW CREATE TABLE `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DESC `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;