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

85 lines
3.1 KiB
Text
Raw Normal View History

--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 Displaying Japanese charact in ujis encoding
#
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `<60>ԣ<EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (c1 char(20), INDEX(c1)) 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 * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
#MyISAM
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
#Heap
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD>`;
#BDB
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT * FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT * 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>`;