Loading mysql-test/include/ctype_filesort.inc 0 → 100644 +15 −0 Original line number Diff line number Diff line # # Set desired charset_connection and collation_collation # before including this file. # # The next query creates a LONGTEXT column # using the current character_set_connection # and collation_connection. create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; drop table t1; mysql-test/r/ctype_big5.result +21 −0 Original line number Diff line number Diff line Loading @@ -56,3 +56,24 @@ DROP DATABASE d1; USE test; SET character_set_server= @safe_character_set_server; SET collation_server= @safe_collation_server; SET NAMES big5; SET collation_connection='big5_chinese_ci'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) big5_chinese_ci 6109 big5_chinese_ci 61 big5_chinese_ci 6120 drop table t1; SET collation_connection='big5_bin'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) big5_bin 6109 big5_bin 61 big5_bin 6120 drop table t1; mysql-test/r/ctype_latin1.result +20 −0 Original line number Diff line number Diff line Loading @@ -305,3 +305,23 @@ select 'a' regexp 'A' collate latin1_general_cs; select 'a' regexp 'A' collate latin1_bin; 'a' regexp 'A' collate latin1_bin 0 SET collation_connection='latin1_swedish_ci'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) latin1_swedish_ci 6109 latin1_swedish_ci 61 latin1_swedish_ci 6120 drop table t1; SET collation_connection='latin1_bin'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) latin1_bin 6109 latin1_bin 61 latin1_bin 6120 drop table t1; mysql-test/r/ctype_latin1_de.result +9 −0 Original line number Diff line number Diff line Loading @@ -317,3 +317,12 @@ FIELD('ue',s1) FIELD(' 1 1 1 1 1 1 1 1 DROP TABLE t1; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) latin1_german2_ci 6109 latin1_german2_ci 61 latin1_german2_ci 6120 drop table t1; mysql-test/r/ctype_sjis.result +20 −0 Original line number Diff line number Diff line Loading @@ -71,3 +71,23 @@ B1 B2 B3 drop table t1; SET collation_connection='sjis_japanese_ci'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) sjis_japanese_ci 6109 sjis_japanese_ci 61 sjis_japanese_ci 6120 drop table t1; SET collation_connection='sjis_bin'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) sjis_bin 6109 sjis_bin 61 sjis_bin 6120 drop table t1; Loading
mysql-test/include/ctype_filesort.inc 0 → 100644 +15 −0 Original line number Diff line number Diff line # # Set desired charset_connection and collation_collation # before including this file. # # The next query creates a LONGTEXT column # using the current character_set_connection # and collation_connection. create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; drop table t1;
mysql-test/r/ctype_big5.result +21 −0 Original line number Diff line number Diff line Loading @@ -56,3 +56,24 @@ DROP DATABASE d1; USE test; SET character_set_server= @safe_character_set_server; SET collation_server= @safe_collation_server; SET NAMES big5; SET collation_connection='big5_chinese_ci'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) big5_chinese_ci 6109 big5_chinese_ci 61 big5_chinese_ci 6120 drop table t1; SET collation_connection='big5_bin'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) big5_bin 6109 big5_bin 61 big5_bin 6120 drop table t1;
mysql-test/r/ctype_latin1.result +20 −0 Original line number Diff line number Diff line Loading @@ -305,3 +305,23 @@ select 'a' regexp 'A' collate latin1_general_cs; select 'a' regexp 'A' collate latin1_bin; 'a' regexp 'A' collate latin1_bin 0 SET collation_connection='latin1_swedish_ci'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) latin1_swedish_ci 6109 latin1_swedish_ci 61 latin1_swedish_ci 6120 drop table t1; SET collation_connection='latin1_bin'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) latin1_bin 6109 latin1_bin 61 latin1_bin 6120 drop table t1;
mysql-test/r/ctype_latin1_de.result +9 −0 Original line number Diff line number Diff line Loading @@ -317,3 +317,12 @@ FIELD('ue',s1) FIELD(' 1 1 1 1 1 1 1 1 DROP TABLE t1; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) latin1_german2_ci 6109 latin1_german2_ci 61 latin1_german2_ci 6120 drop table t1;
mysql-test/r/ctype_sjis.result +20 −0 Original line number Diff line number Diff line Loading @@ -71,3 +71,23 @@ B1 B2 B3 drop table t1; SET collation_connection='sjis_japanese_ci'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) sjis_japanese_ci 6109 sjis_japanese_ci 61 sjis_japanese_ci 6120 drop table t1; SET collation_connection='sjis_bin'; create table t1 select repeat('a',4000) a; delete from t1; insert into t1 values ('a'), ('a '), ('a\t'); select collation(a),hex(a) from t1 order by a; collation(a) hex(a) sjis_bin 6109 sjis_bin 61 sjis_bin 6120 drop table t1;