~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

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;