~vkolesnikov/pbxt/pbxt-07-diskfull

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/include/ctype_innodb_like.inc

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Bug#11650: LIKE pattern matching using prefix index
 
3
# doesn't return correct result
 
4
#
 
5
--disable_warnings
 
6
#
 
7
# This query creates a column using
 
8
# character_set_connection and
 
9
# collation_connection.
 
10
#
 
11
create table t1 engine=innodb select repeat('a',50) as c1;
 
12
--enable_warnings
 
13
alter table t1 add index(c1(5));
 
14
 
 
15
insert into t1 values ('abcdefg'),('abcde100'),('abcde110'),('abcde111');
 
16
select collation(c1) from t1 limit 1;
 
17
select c1 from t1 where c1 like 'abcdef%' order by c1;
 
18
select c1 from t1 where c1 like 'abcde1%' order by c1;
 
19
select c1 from t1 where c1 like 'abcde11%' order by c1;
 
20
select c1 from t1 where c1 like 'abcde111%' order by c1;
 
21
drop table t1;