Commit f461dea4 authored by unknown's avatar unknown

Character set sets now check if required non-dynamic charsets were really compiled


BitKeeper/deleted/.del-ctype_ujis-master.opt~9f5cc09930fc1cf9:
  Delete: mysql-test/t/ctype_ujis-master.opt
parent d7ab5da8
-- require r/have_ucs2.require
disable_query_log;
show collation like "ucs2_general_ci";
enable_query_log;
-- require r/have_ujis.require
disable_query_log;
show collation like "ujis_japanese_ci";
enable_query_log;
Collation Charset Id D C Sortlen
ucs2_general_ci ucs2 35 Y 0
Collation Charset Id D C Sortlen
ujis_japanese_ci ujis 12 Y 0
......@@ -73,14 +73,14 @@ test.t2 check error Table 't2' was not locked with LOCK TABLES
test.t1 check status OK
show columns from t1;
Field Type Collation Null Key Default Extra
a int(11) binary PRI 0
b int(11) binary MUL 0
c int(11) binary 0
a int(11) NULL PRI 0
b int(11) NULL MUL 0
c int(11) NULL 0
show full columns from t1;
Field Type Collation Null Key Default Extra Privileges Comment
a int(11) binary PRI 0 select,insert,update,references
b int(11) binary MUL 0 select,insert,update,references
c int(11) binary 0 select,insert,update,references
a int(11) NULL PRI 0 select,insert,update,references
b int(11) NULL MUL 0 select,insert,update,references
c int(11) NULL 0 select,insert,update,references
show index from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t1 0 PRIMARY 1 a A 4 NULL NULL BTREE
......
-- source include/have_ucs2.inc
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
......
-- source include/have_ujis.inc
#
# Tests with the ujis character set
#
......@@ -9,7 +11,7 @@ drop table if exists t1;
# Test problem with LEFT()
#
create table t1 (c text);
create table t1 (c text character set ujis);
insert into t1 values (0xa4a2),(0xa4a3);
select hex(left(c,1)) from t1 group by c;
drop table t1;
......@@ -169,7 +169,10 @@ To make maintaining easier please:
<family>Japanese</family>
<description>EUC-JP Japanese</description>
<alias>euc-jp</alias>
<collation name="ujis_japanese_ci" id="12" order="Japanese" flag="primary"/>
<collation name="ujis_japanese_ci" id="12" order="Japanese">
<flag>primary</flag>
<flag>compiled</flag>
</collation>
</charset>
<charset name="sjis">
......@@ -178,7 +181,10 @@ To make maintaining easier please:
<alias>s-jis</alias>
<alias>shift-jis</alias>
<alias>x-sjis</alias>
<collation name="sjis_japanese_ci" id="13" order="Japanese" flag="primary"/>
<collation name="sjis_japanese_ci" id="13" order="Japanese">
<flag>primary</flag>
<flag>compiled</flag>
</collation>
</charset>
<charset name="cp1251">
......@@ -376,7 +382,10 @@ To make maintaining easier please:
<charset name="ucs2">
<family>Unicode</family>
<description>UCS-2 Unicode</description>
<collation name="ucs2_general_ci" id="35" flag="primary"/>
<collation name="ucs2_general_ci" id="35">
<flag>primary</flag>
<flag>compiled</flag>
</collation>
</charset>
<charset name="cp866">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment