2005-01-07 00:48:38 -08:00
|
|
|
|
--source include/have_ucs2.inc
|
2008-05-15 18:01:13 +02:00
|
|
|
|
--source include/have_innodb.inc
|
2005-01-07 00:48:38 -08:00
|
|
|
|
|
|
|
|
|
# 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;
|
2008-05-15 18:01:13 +02:00
|
|
|
|
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;
|
2005-01-07 00:48:38 -08:00
|
|
|
|
|
|
|
|
|
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
|
2008-05-15 18:01:13 +02:00
|
|
|
|
# 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;
|
2005-01-07 00:48:38 -08:00
|
|
|
|
|
2008-05-15 18:01:13 +02:00
|
|
|
|
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>`;
|
2005-01-07 00:48:38 -08:00
|
|
|
|
|
2008-05-15 18:01:13 +02:00
|
|
|
|
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>`;
|
2005-01-07 00:48:38 -08:00
|
|
|
|
|
|
|
|
|
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>`;
|