polardbxengine/mysql-test/suite/jp/t/jp_select_utf8.test

67 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

--disable_warnings
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
--enable_warnings
#
# Test Displaying Japanese charact in utf8 encoding
#
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `` (c1 char(20), INDEX(c1)) DEFAULT CHARSET = utf8 engine = MEMORY;
#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_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE ``;
#InnoDB
SELECT * FROM ``;
SELECT * FROM ``;
SELECT * FROM ``;
#MyISAM
SELECT * FROM ``;
SELECT * FROM ``;
SELECT * FROM ``;
#MEMORY
SELECT * FROM ``;
SELECT * FROM ``;
SELECT * FROM ``;
drop table ``;
drop table ``;
drop table ``;
drop table ``;
drop table ``;
drop table ``;
drop table ``;
drop table ``;
drop table ``;