mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
9ad1b390fc
Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_alter_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_alter_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_alter_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_alter_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charlength_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charlength_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charlength_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charlength_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charset_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charset_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charset_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_charset_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_convert_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_convert_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_convert_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_convert_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_db_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_db_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_db_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_db_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_tbl_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_tbl_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_tbl_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_create_tbl_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_enum_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_enum_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_enum_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_enum_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_insert_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_insert_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_insert_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_insert_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_instr_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_instr_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_instr_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_instr_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_join_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_join_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_join_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_join_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_left_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_left_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_left_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_left_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_length_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_length_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_length_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_length_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_like_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_like_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_like_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_like_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_locate_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_locate_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_locate_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_locate_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_lpad_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_lpad_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_lpad_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_lpad_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_ltrim_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_ltrim_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_ltrim_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_ltrim_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_ps_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_ps_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_replace_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_replace_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_replace_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_replace_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_reverse_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_reverse_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_reverse_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_reverse_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_right_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_right_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_right_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_right_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rpad_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rpad_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rpad_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rpad_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rtrim_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rtrim_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rtrim_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_rtrim_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_select_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_select_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_select_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_select_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_subquery_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_subquery_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_subquery_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_subquery_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_substring_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_substring_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_substring_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_substring_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_trim_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_trim_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_trim_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_trim_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_union_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_update_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_update_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_update_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_update_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_where_sjis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_where_ucs2.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_where_ujis.result: Change mode to -rw-rw---- mysql-test/suite/jp/r/jp_where_utf8.result: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0201_sjis.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0201_ucs2.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0201_ujis.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0201_utf8.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0208_sjis.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0208_sjis2.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0208_sjis3.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0208_ucs2.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0208_ujis.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0208_utf8.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0212_ucs2.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0212_ujis.dat: Change mode to -rw-rw---- mysql-test/suite/jp/std_data/jisx0212_utf8.dat: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_alter_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_alter_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_alter_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_alter_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charlength_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charlength_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charlength_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charlength_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charset_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charset_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charset_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_charset_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_convert_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_convert_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_convert_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_convert_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_db_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_db_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_db_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_db_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_tbl_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_tbl_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_tbl_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_create_tbl_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_enum_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_enum_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_enum_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_enum_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_insert_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_insert_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_insert_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_insert_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_instr_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_instr_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_instr_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_instr_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_join_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_join_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_join_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_join_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_left_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_left_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_left_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_left_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_length_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_length_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_length_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_length_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_like_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_like_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_like_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_like_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_locate_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_locate_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_locate_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_locate_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_lpad_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_lpad_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_lpad_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_lpad_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_ltrim_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_ltrim_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_ltrim_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_ltrim_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_ps_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_ps_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_replace_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_replace_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_replace_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_replace_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_reverse_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_reverse_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_reverse_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_reverse_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_right_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_right_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_right_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_right_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rpad_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rpad_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rpad_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rpad_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rtrim_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rtrim_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rtrim_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_rtrim_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_select_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_select_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_select_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_select_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_subquery_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_subquery_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_subquery_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_subquery_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_substring_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_substring_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_substring_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_substring_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_trim_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_trim_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_trim_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_trim_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_union_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_update_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_update_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_update_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_update_utf8.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_where_sjis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_where_ucs2.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_where_ujis.test: Change mode to -rw-rw---- mysql-test/suite/jp/t/jp_where_utf8.test: Change mode to -rw-rw----
896 lines
15 KiB
Text
896 lines
15 KiB
Text
DROP TABLE IF EXISTS t1;
|
|
DROP TABLE IF EXISTS t2;
|
|
DROP TABLE IF EXISTS t3;
|
|
DROP TABLE IF EXISTS t4;
|
|
SET NAMES sjis;
|
|
SET character_set_database = sjis;
|
|
CREATE TABLE t1(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = InnoDB;
|
|
CREATE TABLE t2(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = InnoDB;
|
|
CREATE TABLE t3(
|
|
`ア` char(1),
|
|
`あ` char(1),
|
|
`表` char(1)
|
|
)DEFAULT CHARSET = sjis ENGINE = InnoDB;
|
|
CREATE TABLE t4(c1 char(1)) DEFAULT CHARSET = sjis ENGINE = InnoDB;
|
|
INSERT INTO t1 VALUES ('xxx');
|
|
INSERT INTO t2 VALUES ('アあ表');
|
|
INSERT INTO t3 VALUES ('x','x','x'),('x','x','x'),('y','y','y'),('y','y','y'),('z','z','z'),('z','z','z');
|
|
INSERT INTO t4 VALUES ('ア'),('あ'),('表');
|
|
PREPARE stmt1 FROM 'SELECT ? FROM t3';
|
|
PREPARE stmt2 FROM 'SELECT * FROM t3 ORDER BY ?';
|
|
PREPARE stmt3 FROM 'SELECT COUNT(*) FROM t3 GROUP BY ?';
|
|
PREPARE stmt4 FROM 'SELECT CHAR_LENGTH(?)';
|
|
PREPARE stmt5 FROM 'SELECT CHARSET(?)';
|
|
PREPARE stmt6 FROM 'SELECT INSERT(c1,1,1,?) FROM t1';
|
|
PREPARE stmt7 FROM 'SELECT INSTR(c1,?) FROM t2';
|
|
PREPARE stmt8 FROM 'SELECT LOCATE(?,c1) FROM t2';
|
|
PREPARE stmt9 FROM 'SELECT LPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt10 FROM 'SELECT REPLACE(c1,?,\'x\') FROM t2';
|
|
PREPARE stmt11 FROM 'SELECT REPLACE(c1,\'x\',?) FROM t1';
|
|
PREPARE stmt12 FROM 'SELECT RPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt13 FROM 'UPDATE t4 SET c1=\'x\' WHERE c1=?';
|
|
PREPARE stmt14 FROM 'UPDATE t4 SET c1=? WHERE c1=\'x\'';
|
|
SET @arg = 'ア';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
アxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
1
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
1
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
アアアアアアアxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
xあ表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
アアア
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxアアアアアアア
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
x
|
|
あ
|
|
表
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
SET @arg = 'あ';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
あxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
2
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
2
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
あああああああxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アx表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
あああ
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxあああああああ
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
x
|
|
表
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
SET @arg = '表';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
表xx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
3
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
3
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
表表表表表表表xxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アあx
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
表表表
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxx表表表表表表表
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
x
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
DEALLOCATE PREPARE stmt1;
|
|
DEALLOCATE PREPARE stmt2;
|
|
DEALLOCATE PREPARE stmt3;
|
|
DEALLOCATE PREPARE stmt4;
|
|
DEALLOCATE PREPARE stmt5;
|
|
DEALLOCATE PREPARE stmt6;
|
|
DEALLOCATE PREPARE stmt7;
|
|
DEALLOCATE PREPARE stmt8;
|
|
DEALLOCATE PREPARE stmt9;
|
|
DEALLOCATE PREPARE stmt10;
|
|
DEALLOCATE PREPARE stmt11;
|
|
DEALLOCATE PREPARE stmt12;
|
|
DEALLOCATE PREPARE stmt13;
|
|
DEALLOCATE PREPARE stmt14;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
DROP TABLE t3;
|
|
DROP TABLE t4;
|
|
CREATE TABLE t1(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = MyISAM;
|
|
CREATE TABLE t2(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = MyISAM;
|
|
CREATE TABLE t3(
|
|
`ア` char(1),
|
|
`あ` char(1),
|
|
`表` char(1)
|
|
)DEFAULT CHARSET = sjis ENGINE = MyISAM;
|
|
CREATE TABLE t4(c1 char(1)) DEFAULT CHARSET = sjis ENGINE = MyISAM;
|
|
INSERT INTO t1 VALUES ('xxx');
|
|
INSERT INTO t2 VALUES ('アあ表');
|
|
INSERT INTO t3 VALUES ('x','x','x'),('x','x','x'),('y','y','y'),('y','y','y'),('z','z','z'),('z','z','z');
|
|
INSERT INTO t4 VALUES ('ア'),('あ'),('表' );
|
|
PREPARE stmt1 FROM 'SELECT ? FROM t3';
|
|
PREPARE stmt2 FROM 'SELECT * FROM t3 ORDER BY ?';
|
|
PREPARE stmt3 FROM 'SELECT COUNT(*) FROM t3 GROUP BY ?';
|
|
PREPARE stmt4 FROM 'SELECT CHAR_LENGTH(?)';
|
|
PREPARE stmt5 FROM 'SELECT CHARSET(?)';
|
|
PREPARE stmt6 FROM 'SELECT INSERT(c1,1,1,?) FROM t1';
|
|
PREPARE stmt7 FROM 'SELECT INSTR(c1,?) FROM t2';
|
|
PREPARE stmt8 FROM 'SELECT LOCATE(?,c1) FROM t2';
|
|
PREPARE stmt9 FROM 'SELECT LPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt10 FROM 'SELECT REPLACE(c1,?,\'x\') FROM t2';
|
|
PREPARE stmt11 FROM 'SELECT REPLACE(c1,\'x\',?) FROM t1';
|
|
PREPARE stmt12 FROM 'SELECT RPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt13 FROM 'UPDATE t4 SET c1=\'x\' WHERE c1=?';
|
|
PREPARE stmt14 FROM 'UPDATE t4 SET c1=? WHERE c1=\'x\'';
|
|
SET @arg = 'ア';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
アxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
1
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
1
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
アアアアアアアxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
xあ表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
アアア
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxアアアアアアア
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
x
|
|
あ
|
|
表
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
SET @arg = 'あ';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
あxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
2
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
2
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
あああああああxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アx表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
あああ
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxあああああああ
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
x
|
|
表
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
SET @arg = '表';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
表xx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
3
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
3
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
表表表表表表表xxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アあx
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
表表表
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxx表表表表表表表
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
x
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
DEALLOCATE PREPARE stmt1;
|
|
DEALLOCATE PREPARE stmt2;
|
|
DEALLOCATE PREPARE stmt3;
|
|
DEALLOCATE PREPARE stmt4;
|
|
DEALLOCATE PREPARE stmt5;
|
|
DEALLOCATE PREPARE stmt6;
|
|
DEALLOCATE PREPARE stmt7;
|
|
DEALLOCATE PREPARE stmt8;
|
|
DEALLOCATE PREPARE stmt9;
|
|
DEALLOCATE PREPARE stmt10;
|
|
DEALLOCATE PREPARE stmt11;
|
|
DEALLOCATE PREPARE stmt12;
|
|
DEALLOCATE PREPARE stmt13;
|
|
DEALLOCATE PREPARE stmt14;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
DROP TABLE t3;
|
|
DROP TABLE t4;
|
|
CREATE TABLE t1(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = HEAP;
|
|
CREATE TABLE t2(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = HEAP;
|
|
CREATE TABLE t3(
|
|
`ア` char(1),
|
|
`あ` char(1),
|
|
`表` char(1)
|
|
)DEFAULT CHARSET = sjis ENGINE = HEAP;
|
|
CREATE TABLE t4(c1 char(1)) DEFAULT CHARSET = sjis ENGINE =HEAP;
|
|
INSERT INTO t1 VALUES ('xxx');
|
|
INSERT INTO t2 VALUES ('アあ表');
|
|
INSERT INTO t3 VALUES ('x','x','x'),('x','x','x'),('y','y','y'),('y','y','y'),('z','z','z'),('z','z','z');
|
|
INSERT INTO t4 VALUES ('ア'),('あ'),('表' );
|
|
PREPARE stmt1 FROM 'SELECT ? FROM t3';
|
|
PREPARE stmt2 FROM 'SELECT * FROM t3 ORDER BY ?';
|
|
PREPARE stmt3 FROM 'SELECT COUNT(*) FROM t3 GROUP BY ?';
|
|
PREPARE stmt4 FROM 'SELECT CHAR_LENGTH(?)';
|
|
PREPARE stmt5 FROM 'SELECT CHARSET(?)';
|
|
PREPARE stmt6 FROM 'SELECT INSERT(c1,1,1,?) FROM t1';
|
|
PREPARE stmt7 FROM 'SELECT INSTR(c1,?) FROM t2';
|
|
PREPARE stmt8 FROM 'SELECT LOCATE(?,c1) FROM t2';
|
|
PREPARE stmt9 FROM 'SELECT LPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt10 FROM 'SELECT REPLACE(c1,?,\'x\') FROM t2';
|
|
PREPARE stmt11 FROM 'SELECT REPLACE(c1,\'x\',?) FROM t1';
|
|
PREPARE stmt12 FROM 'SELECT RPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt13 FROM 'UPDATE t4 SET c1=\'x\' WHERE c1=?';
|
|
PREPARE stmt14 FROM 'UPDATE t4 SET c1=? WHERE c1=\'x\'';
|
|
SET @arg = 'ア';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
アxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
1
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
1
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
アアアアアアアxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
xあ表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
アアア
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxアアアアアアア
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
x
|
|
あ
|
|
表
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
SET @arg = 'あ';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
あxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
2
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
2
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
あああああああxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アx表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
あああ
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxあああああああ
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
x
|
|
表
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
SET @arg = '表';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
表xx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
3
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
3
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
表表表表表表表xxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アあx
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
表表表
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxx表表表表表表表
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
x
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
DEALLOCATE PREPARE stmt1;
|
|
DEALLOCATE PREPARE stmt2;
|
|
DEALLOCATE PREPARE stmt3;
|
|
DEALLOCATE PREPARE stmt4;
|
|
DEALLOCATE PREPARE stmt5;
|
|
DEALLOCATE PREPARE stmt6;
|
|
DEALLOCATE PREPARE stmt7;
|
|
DEALLOCATE PREPARE stmt8;
|
|
DEALLOCATE PREPARE stmt9;
|
|
DEALLOCATE PREPARE stmt10;
|
|
DEALLOCATE PREPARE stmt11;
|
|
DEALLOCATE PREPARE stmt12;
|
|
DEALLOCATE PREPARE stmt13;
|
|
DEALLOCATE PREPARE stmt14;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
DROP TABLE t3;
|
|
DROP TABLE t4;
|
|
CREATE TABLE t1(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = BDB;
|
|
CREATE TABLE t2(c1 char(3)) DEFAULT CHARSET = sjis ENGINE = BDB;
|
|
CREATE TABLE t3(
|
|
`ア` char(1),
|
|
`あ` char(1),
|
|
`表` char(1)
|
|
)DEFAULT CHARSET = sjis ENGINE = BDB;
|
|
CREATE TABLE t4(c1 char(1)) DEFAULT CHARSET = sjis ENGINE = BDB;
|
|
INSERT INTO t1 VALUES ('xxx');
|
|
INSERT INTO t2 VALUES ('アあ表');
|
|
INSERT INTO t3 VALUES ('x','x','x'),('x','x','x'),('y','y','y'),('y','y','y'),('z','z','z'),('z','z','z');
|
|
INSERT INTO t4 VALUES ('ア'),('あ'),('表' );
|
|
PREPARE stmt1 FROM 'SELECT ? FROM t3';
|
|
PREPARE stmt2 FROM 'SELECT * FROM t3 ORDER BY ?';
|
|
PREPARE stmt3 FROM 'SELECT COUNT(*) FROM t3 GROUP BY ?';
|
|
PREPARE stmt4 FROM 'SELECT CHAR_LENGTH(?)';
|
|
PREPARE stmt5 FROM 'SELECT CHARSET(?)';
|
|
PREPARE stmt6 FROM 'SELECT INSERT(c1,1,1,?) FROM t1';
|
|
PREPARE stmt7 FROM 'SELECT INSTR(c1,?) FROM t2';
|
|
PREPARE stmt8 FROM 'SELECT LOCATE(?,c1) FROM t2';
|
|
PREPARE stmt9 FROM 'SELECT LPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt10 FROM 'SELECT REPLACE(c1,?,\'x\') FROM t2';
|
|
PREPARE stmt11 FROM 'SELECT REPLACE(c1,\'x\',?) FROM t1';
|
|
PREPARE stmt12 FROM 'SELECT RPAD(c1,10,?) FROM t1';
|
|
PREPARE stmt13 FROM 'UPDATE t4 SET c1=\'x\' WHERE c1=?';
|
|
PREPARE stmt14 FROM 'UPDATE t4 SET c1=? WHERE c1=\'x\'';
|
|
SET @arg = 'ア';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
ア
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
アxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
1
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
1
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
アアアアアアアxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
xあ表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
アアア
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxアアアアアアア
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t3;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t3;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
SET @arg = 'あ';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
あ
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
あxx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
2
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
2
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
あああああああxxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アx表
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
あああ
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxxあああああああ
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
x
|
|
表
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
SET @arg = '表';
|
|
EXECUTE stmt1 USING @arg;
|
|
?
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
表
|
|
EXECUTE stmt2 USING @arg;
|
|
ア あ 表
|
|
x x x
|
|
x x x
|
|
y y y
|
|
y y y
|
|
z z z
|
|
z z z
|
|
EXECUTE stmt3 USING @arg;
|
|
COUNT(*)
|
|
6
|
|
EXECUTE stmt4 USING @arg;
|
|
CHAR_LENGTH(?)
|
|
1
|
|
EXECUTE stmt5 USING @arg;
|
|
CHARSET(?)
|
|
sjis
|
|
EXECUTE stmt6 USING @arg;
|
|
INSERT(c1,1,1,?)
|
|
表xx
|
|
EXECUTE stmt7 USING @arg;
|
|
INSTR(c1,?)
|
|
3
|
|
EXECUTE stmt8 USING @arg;
|
|
LOCATE(?,c1)
|
|
3
|
|
EXECUTE stmt9 USING @arg;
|
|
LPAD(c1,10,?)
|
|
表表表表表表表xxx
|
|
EXECUTE stmt10 USING @arg;
|
|
REPLACE(c1,?,'x')
|
|
アあx
|
|
EXECUTE stmt11 USING @arg;
|
|
REPLACE(c1,'x',?)
|
|
表表表
|
|
EXECUTE stmt12 USING @arg;
|
|
RPAD(c1,10,?)
|
|
xxx表表表表表表表
|
|
EXECUTE stmt13 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
x
|
|
EXECUTE stmt14 USING @arg;
|
|
SELECT * FROM t4;
|
|
c1
|
|
ア
|
|
あ
|
|
表
|
|
DEALLOCATE PREPARE stmt1;
|
|
DEALLOCATE PREPARE stmt2;
|
|
DEALLOCATE PREPARE stmt3;
|
|
DEALLOCATE PREPARE stmt4;
|
|
DEALLOCATE PREPARE stmt5;
|
|
DEALLOCATE PREPARE stmt6;
|
|
DEALLOCATE PREPARE stmt7;
|
|
DEALLOCATE PREPARE stmt8;
|
|
DEALLOCATE PREPARE stmt9;
|
|
DEALLOCATE PREPARE stmt10;
|
|
DEALLOCATE PREPARE stmt11;
|
|
DEALLOCATE PREPARE stmt12;
|
|
DEALLOCATE PREPARE stmt13;
|
|
DEALLOCATE PREPARE stmt14;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
DROP TABLE t3;
|
|
DROP TABLE t4;
|