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

95 lines
3.1 KiB
Text
Raw Normal View History

--character_set 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 Updating with Japanese characters in sjis encoding
#
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `<60>s<EFBFBD>P` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `<60>s<EFBFBD>Q` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `<60>s<EFBFBD>R` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `<60>s<EFBFBD>S` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `<60>s<EFBFBD>T` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `<60>s<EFBFBD>U` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `<60>s<EFBFBD>V` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `<60>s<EFBFBD>W` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `<60>s<EFBFBD>X` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>O` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>P` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Q` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
INSERT INTO `<60>s<EFBFBD>P` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>Q` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>R` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\');
INSERT INTO `<60>s<EFBFBD>S` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>T` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>U` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\');
INSERT INTO `<60>s<EFBFBD>V` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>W` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>X` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\');
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>O` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>P` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Q` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\');
UPDATE `<60>s<EFBFBD>P` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>Q` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>R` SET `<60>b<EFBFBD>P` = ('<27>\<5C>\<5C>\<5C>\<5C>\');
UPDATE `<60>s<EFBFBD>S` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>T` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>U` SET `<60>b<EFBFBD>P` = ('<27>\<5C>\<5C>\<5C>\<5C>\');
UPDATE `<60>s<EFBFBD>V` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>W` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>X` SET `<60>b<EFBFBD>P` = ('<27>\<5C>\<5C>\<5C>\<5C>\');
UPDATE `<60>s<EFBFBD>P<EFBFBD>O` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>P<EFBFBD>P` SET `<60>b<EFBFBD>P` = ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
UPDATE `<60>s<EFBFBD>P<EFBFBD>Q` SET `<60>b<EFBFBD>P` = ('<27>\<5C>\<5C>\<5C>\<5C>\');
#InnoDB
SELECT * FROM `<60>s<EFBFBD>P`;
SELECT * FROM `<60>s<EFBFBD>Q`;
SELECT * FROM `<60>s<EFBFBD>R`;
#MyISAM
SELECT * FROM `<60>s<EFBFBD>S`;
SELECT * FROM `<60>s<EFBFBD>T`;
SELECT * FROM `<60>s<EFBFBD>U`;
#HEAP
SELECT * FROM `<60>s<EFBFBD>V`;
SELECT * FROM `<60>s<EFBFBD>W`;
SELECT * FROM `<60>s<EFBFBD>X`;
#BDB
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>O`;
SELECT * FROM `<60>s<EFBFBD>P<EFBFBD>P`;
SELECT * 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`;