2008-05-15 18:01:13 +02:00
|
|
|
|
--source include/have_sjis.inc
|
|
|
|
|
--source include/have_innodb.inc
|
2005-01-07 00:48:38 -08:00
|
|
|
|
--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`;
|
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Test REPLACE() function 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)) DEFAULT CHARSET = sjis engine = innodb;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>Q` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = innodb;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>R` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = innodb;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>S` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = myisam;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>T` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = myisam;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>U` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = myisam;
|
2008-05-15 18:01:13 +02:00
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>V` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = MEMORY;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>W` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = MEMORY;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>X` (`<60>b<EFBFBD>P` char(5)) DEFAULT CHARSET = sjis engine = MEMORY;
|
2005-01-07 00:48:38 -08:00
|
|
|
|
|
|
|
|
|
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>\');
|
|
|
|
|
|
|
|
|
|
#InnoDB
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
|
|
|
|
|
#MyISAM
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
|
2008-05-15 18:01:13 +02:00
|
|
|
|
#MEMORY
|
2005-01-07 00:48:38 -08:00
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>','<27><>') FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27><>','<27><><EFBFBD><EFBFBD>') FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT REPLACE(`<60>b<EFBFBD>P`,'<27>\','<27>\<5C>\') FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
|
|
|
|
|
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`;
|