mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
111 lines
4.9 KiB
Text
111 lines
4.9 KiB
Text
|
--character_set sjis
|
|||
|
SET NAMES sjis;
|
|||
|
SET character_set_database = sjis;
|
|||
|
|
|||
|
--disable_warnings
|
|||
|
drop table if exists `<60>s<EFBFBD>P`;
|
|||
|
drop table if exists `<60>s<EFBFBD>Q`;
|
|||
|
drop table if exists `<60>s<EFBFBD>R`;
|
|||
|
drop table if exists `<60>s<EFBFBD>S`;
|
|||
|
drop table if exists `<60>s<EFBFBD>T`;
|
|||
|
drop table if exists `<60>s<EFBFBD>U`;
|
|||
|
drop table if exists `<60>s<EFBFBD>V`;
|
|||
|
drop table if exists `<60>s<EFBFBD>W`;
|
|||
|
drop table if exists `<60>s<EFBFBD>X`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
--enable_warnings
|
|||
|
|
|||
|
#
|
|||
|
# Test CONVERT() function with Japanese character in sjis encoding
|
|||
|
#
|
|||
|
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Q` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>R` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>S` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>T` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>U` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>V` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>W` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>X` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>O` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>P` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Q` (`<60>b<EFBFBD>P` char(20), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis 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_sjis.dat' INTO TABLE `<60>s<EFBFBD>P`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `<60>s<EFBFBD>Q`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `<60>s<EFBFBD>R`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `<60>s<EFBFBD>S`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `<60>s<EFBFBD>T`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `<60>s<EFBFBD>U`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `<60>s<EFBFBD>V`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `<60>s<EFBFBD>W`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `<60>s<EFBFBD>X`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
|
|||
|
#InnoDB
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>R`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>R`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>R`;
|
|||
|
|
|||
|
#MyISAM
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>U`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>U`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>U`;
|
|||
|
|
|||
|
#Heap
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>X`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>X`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>X`;
|
|||
|
|
|||
|
#BDB
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using utf8) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ucs2) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, CONVERT(`<60>b<EFBFBD>P` using ujis) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
|
|||
|
drop table `<60>s<EFBFBD>P`;
|
|||
|
drop table `<60>s<EFBFBD>Q`;
|
|||
|
drop table `<60>s<EFBFBD>R`;
|
|||
|
drop table `<60>s<EFBFBD>S`;
|
|||
|
drop table `<60>s<EFBFBD>T`;
|
|||
|
drop table `<60>s<EFBFBD>U`;
|
|||
|
drop table `<60>s<EFBFBD>V`;
|
|||
|
drop table `<60>s<EFBFBD>W`;
|
|||
|
drop table `<60>s<EFBFBD>X`;
|
|||
|
drop table `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
drop table `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
drop table `<60>s<EFBFBD>P<EFBFBD>Q`;
|