mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 00:04:33 +01:00
116 lines
5.2 KiB
Text
116 lines
5.2 KiB
Text
|
--source include/have_ujis.inc
|
|||
|
|
|||
|
--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 CONVERT() function with Japanese character in ujis encoding
|
|||
|
#
|
|||
|
|
|||
|
SET NAMES ujis;
|
|||
|
SET character_set_database = ujis;
|
|||
|
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = myisam;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = myisam;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = myisam;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = bdb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = bdb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(20), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = bdb;
|
|||
|
|
|||
|
#Load the following data in each table
|
|||
|
# jisx0201 hankaku-katakana data
|
|||
|
# jisx0208 data
|
|||
|
# jisx0212 supplemental character data
|
|||
|
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
|
|||
|
#InnoDB
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
# The result will get garbled because jisx0212 is not included in sjis
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
|
|||
|
#MyISAM
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
# The result will get garbled because jisx0212 is not included in sjis
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
|
|||
|
#Heap
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
# The result will get garbled because jisx0212 is not included in sjis
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
|
|||
|
#BDB
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using utf8) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using ucs2) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
# The result will get garbled because jisx0212 is not included in sjis
|
|||
|
SELECT `<60>ã<EFBFBD>`, CONVERT(`<60>ã<EFBFBD>` using sjis) FROM `<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>`;
|