diff options
author | unknown <bar@mysql.com> | 2005-07-20 13:40:18 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-07-20 13:40:18 +0500 |
commit | ada6e563c1844202caf54f4ab4a8d956ce895fcf (patch) | |
tree | 526110a5b4bb3328d5ad4efab94fd63bcd4d3387 /mysql-test/include | |
parent | f03607ea9e72f726ce11b60826bbf30ebabc2806 (diff) | |
parent | 5dd494394c43e6e19d4460ae3845a958d62576c2 (diff) | |
download | mariadb-git-ada6e563c1844202caf54f4ab4a8d956ce895fcf.tar.gz |
Merge mysql.com:/usr/home/bar/mysql-4.1
into mysql.com:/usr/home/bar/mysql-5.0
BitKeeper/deleted/.del-ctype-cp932.c:
Auto merged
BitKeeper/deleted/.del-ctype_cp932.result:
Auto merged
BitKeeper/deleted/.del-ctype_cp932.test:
Auto merged
mysql-test/r/ctype_ujis.result:
Auto merged
strings/ctype-big5.c:
Auto merged
strings/ctype-gbk.c:
Auto merged
strings/ctype-simple.c:
Auto merged
strings/ctype-sjis.c:
Auto merged
Diffstat (limited to 'mysql-test/include')
-rw-r--r-- | mysql-test/include/ctype_innodb_like.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/include/ctype_innodb_like.inc b/mysql-test/include/ctype_innodb_like.inc new file mode 100644 index 00000000000..ae43342885a --- /dev/null +++ b/mysql-test/include/ctype_innodb_like.inc @@ -0,0 +1,21 @@ +# +# Bug#11650: LIKE pattern matching using prefix index +# doesn't return correct result +# +--disable_warnings +# +# This query creates a column using +# character_set_connection and +# collation_connection. +# +create table t1 engine=innodb select repeat('a',50) as c1; +--enable_warnings +alter table t1 add index(c1(5)); + +insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111'); +select collation(c1) from t1 limit 1; +select c1 from t1 where c1 like 'abcdef%' order by c1; +select c1 from t1 where c1 like 'abcde1%' order by c1; +select c1 from t1 where c1 like 'abcde11%' order by c1; +select c1 from t1 where c1 like 'abcde111%' order by c1; +drop table t1; |