mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
150 lines
4.7 KiB
Text
150 lines
4.7 KiB
Text
|
--source include/have_ucs2.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>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><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 = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><><EFBFBD>','<27><><EFBFBD>','<27><><EFBFBD>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = bdb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><>','<27><>','<27><>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = bdb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` ENUM('<27><><EFBFBD>','<27><><EFBFBD>','<27><><EFBFBD>'), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ucs2 engine = bdb;
|
|||
|
|
|||
|
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>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>` VALUES ('<27><>'),('<27><>'),('<27><>');
|
|||
|
INSERT INTO `<60>ԣ<EFBFBD><D4A3><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>`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><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>`;
|
|||
|
SHOW CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SHOW CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SHOW CREATE TABLE `<60>ԣ<EFBFBD><D4A3><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>`;
|
|||
|
DESC `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
DESC `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
DESC `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
|
|||
|
#
|
|||
|
# Test problem with enum values after the colum with NOT NULL restriction
|
|||
|
# Cannot test until the bug#7302 is fixed
|
|||
|
|
|||
|
#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;
|
|||
|
#ALTER TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
|
|||
|
#ALTER TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` ADD `<60>ã<EFBFBD>` CHAR(1) NOT NULL FIRST;
|
|||
|
#ALTER TABLE `<60>ԣ<EFBFBD><D4A3><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>`;
|
|||
|
#SHOW CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
#SHOW CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
#SHOW CREATE TABLE `<60>ԣ<EFBFBD><D4A3><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>`;
|
|||
|
#DESC `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
#DESC `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
#DESC `<60>ԣ<EFBFBD><D4A3><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>`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|