| List: | Japanese | « Previous MessageNext Message » | |
| From: | Masaaki HIROSE | Date: | May 31 2004 5:41pm |
| Subject: | Re: バグ報告: インデック スがあると「%」がゼロ文字にマ ッチしない | ||
| View as plain text | |||
ひろせです on "Re: バグ報告: インデックスがあると「%」がゼロ文字にマッチしない" <yf14qpwts8r.wl%hirose31@stripped> at Tue, 01 Jun 2004 02:35:00 +0900 "HIROSE, Masaaki" <hirose31@stripped> wrote: > > How to repeat: > > 添付ファイルを実行すれば再現すると思います。 > > 添付するの忘れました。m(_ _)m 度々すみません… 添付ファイルはカットされるようなので、末尾に引用しま す。 # 今回はいいんですが、EUC-JPとかShift_JISとかUTF-8とかで書かれた再現ス # クリプトはどうやって送ればいいんでしょうか… -- ひろせ http://www.irori.org/ -----------8<-----------8<-----------8<-----------8<-----------8<----------- #! /bin/sh # -*- coding: euc-jp-unix; -*- mysqlcmd='mysql -uhirose31' client_cs=ujis table_cs=ujis # client_cs=utf8 # table_cs=utf8 # client_cs=latin1 # table_cs=latin1 cat <<EOSQL | ${mysqlcmd} --default-character-set=${client_cs} use test; select '* create table' as ''; drop table if exists t_like; create table t_like ( c1 varchar(8) ) default character set '${table_cs}'; select '* show default character set' as ''; show create table t_like; select ''; show create database test; select ''; show variables like 'character\_set%'; insert into t_like values (0xA4A2),(0xA4A2A4A4),(0xA4ABA4A2),(0xA4A2A4A6); insert into t_like values ('a'),('abc'),('bca'),('ade'); select c1 as 'no index #1' from t_like where c1 like cast(concat(0xA4A2,'%') as char character set ujis); select c1 as 'no index #2' from t_like where c1 like 'a%'; create index idx_c1 on t_like (c1); select c1 as 'using index #1' from t_like where c1 like cast(concat(0xA4A2,'%') as char character set ujis); select c1 as 'using index #2' from t_like where c1 like 'a%'; EOSQL # Japanese Hiragana ujis code (in hex) # ===================================== # a A4A2 # i A4A4 # u A4A6 # ka A4AB -----------8<-----------8<-----------8<-----------8<-----------8<-----------
| Thread | ||
|---|---|---|
| • バグ報告: インデックスがあると「%」がゼロ文字にマッチしない | Masaaki HIROSE | 31 May |
| • Re: バグ報告: インデックスがあると「%」がゼロ文字にマッチしない | Masaaki HIROSE | 31 May |
| • Re: バグ報告: インデックスがあると「%」がゼロ文字にマッチしない | Masaaki HIROSE | 31 May |
| • Re: バグ報告: インデックスがあると「%」がゼロ文字にマッチしない | shuichi | 1 Jun |
| • Re: インデックスがあると「%」がゼロ文字にマッチしない | shuichi | 1 Jun |
| • Re: インデックスがあると「%」がゼロ文字にマッチしない | Masaaki HIROSE | 2 Jul |
| • Re: インデックスがあると「%」がゼロ文字にマッチしない | Shuichi Tamagawa | 7 Jul |
