mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
464c2de70a
Bug#28563 Test suite "jp" fails completely - The main goal of this fix is to make the "jp" suite runnable in general and to make it more robust for use in pushbuild under build team conditions. - It was decided to fix the remaining heavy issues within the architecture of this test later (-> WL 4327 Redesign the 'jp' testsuite for build team testing conditions) Only the test jp_trim_sjis got some significant improvements of its architecture (Just as proof of concept for the other tests). - Tests suffering from Bug 36597 Testsuite "jp": Suspicious results for some tests (unexpected result sets) were disabled - *.opt files were used to avoid differences on OS (Windows) because of case sensitive tablenames within the tests
71 lines
3.1 KiB
Text
71 lines
3.1 KiB
Text
--source include/have_ujis.inc
|
||
--source include/have_innodb.inc
|
||
|
||
--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 using WHERE condtion in ujis encoding
|
||
#
|
||
|
||
SET NAMES ujis;
|
||
SET character_set_database = ujis;
|
||
|
||
CREATE TABLE `£Ô£±` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
|
||
CREATE TABLE `£Ô£²` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
|
||
CREATE TABLE `£Ô£³` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = innodb;
|
||
CREATE TABLE `£Ô£´` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
|
||
CREATE TABLE `£Ô£µ` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
|
||
CREATE TABLE `£Ô£¶` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = myisam;
|
||
CREATE TABLE `£Ô£·` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = MEMORY;
|
||
CREATE TABLE `£Ô£¸` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis engine = MEMORY;
|
||
CREATE TABLE `£Ô£¹` (`£Ã£±` char(20), INDEX(`£Ã£±`)) DEFAULT CHARSET = ujis 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_ujis.dat' INTO TABLE `£Ô£±`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `£Ô£²`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `£Ô£³`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `£Ô£´`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `£Ô£µ`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `£Ô£¶`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `£Ô£·`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `£Ô£¸`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `£Ô£¹`;
|
||
|
||
#InnoDB
|
||
SELECT * FROM `£Ô£±` WHERE `£Ã£±` = 'Ž°Ž±Ž²Ž³Ž´ŽµŽ¶Ž·Ž¸Ž¹ŽºŽ»Ž¼Ž½Ž¾Ž¿';
|
||
SELECT * FROM `£Ô£²` WHERE `£Ã£±` = '¡¦¤¡¤¢¤£¤¤¤¥¤¦¤§¤¨¤©¤ª¤«¤¬¤¤®¤¯¤°¤±¤²¤³';
|
||
SELECT * FROM `£Ô£³` WHERE `£Ã£±` = '<27>í´<C3AD>íµ<C3AD>í¶<C3AD>í·<C3AD>í¸<C3AD>í¹<C3AD>íº<C3AD>í»<C3AD>í¼<C3AD>í½<C3AD>í¾<C3AD>í¿<C3AD>íÀ<C3AD>íÁ<C3AD>íÂ<C3AD>íÃ<C3AD>íÄ<C3AD>íÅ<C3AD>íÆ<C3AD>íÇ';
|
||
|
||
#MyISAM
|
||
SELECT * FROM `£Ô£´` WHERE `£Ã£±` = 'Ž°Ž±Ž²Ž³Ž´ŽµŽ¶Ž·Ž¸Ž¹ŽºŽ»Ž¼Ž½Ž¾Ž¿';
|
||
SELECT * FROM `£Ô£µ` WHERE `£Ã£±` = '¡¦¤¡¤¢¤£¤¤¤¥¤¦¤§¤¨¤©¤ª¤«¤¬¤¤®¤¯¤°¤±¤²¤³';
|
||
SELECT * FROM `£Ô£¶` WHERE `£Ã£±` = '<27>í´<C3AD>íµ<C3AD>í¶<C3AD>í·<C3AD>í¸<C3AD>í¹<C3AD>íº<C3AD>í»<C3AD>í¼<C3AD>í½<C3AD>í¾<C3AD>í¿<C3AD>íÀ<C3AD>íÁ<C3AD>íÂ<C3AD>íÃ<C3AD>íÄ<C3AD>íÅ<C3AD>íÆ<C3AD>íÇ';
|
||
|
||
#MEMORY
|
||
SELECT * FROM `£Ô£·` WHERE `£Ã£±` = 'Ž°Ž±Ž²Ž³Ž´ŽµŽ¶Ž·Ž¸Ž¹ŽºŽ»Ž¼Ž½Ž¾Ž¿';
|
||
SELECT * FROM `£Ô£¸` WHERE `£Ã£±` = '¡¦¤¡¤¢¤£¤¤¤¥¤¦¤§¤¨¤©¤ª¤«¤¬¤¤®¤¯¤°¤±¤²¤³';
|
||
SELECT * FROM `£Ô£¹` WHERE `£Ã£±` = '<27>í´<C3AD>íµ<C3AD>í¶<C3AD>í·<C3AD>í¸<C3AD>í¹<C3AD>íº<C3AD>í»<C3AD>í¼<C3AD>í½<C3AD>í¾<C3AD>í¿<C3AD>íÀ<C3AD>íÁ<C3AD>íÂ<C3AD>íÃ<C3AD>íÄ<C3AD>íÅ<C3AD>íÆ<C3AD>íÇ';
|
||
|
||
DROP TABLE `£Ô£±`;
|
||
DROP TABLE `£Ô£²`;
|
||
DROP TABLE `£Ô£³`;
|
||
DROP TABLE `£Ô£´`;
|
||
DROP TABLE `£Ô£µ`;
|
||
DROP TABLE `£Ô£¶`;
|
||
DROP TABLE `£Ô£·`;
|
||
DROP TABLE `£Ô£¸`;
|
||
DROP TABLE `£Ô£¹`;
|