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

« back to all changes in this revision

Viewing changes to mysql-test/t/ctype_latin2_ch.test

  • 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
-- source include/have_latin2_ch.inc
 
2
 
 
3
#
 
4
# Tests with latin2_czech_cs
 
5
#
 
6
--disable_warnings
 
7
drop table if exists t1;
 
8
--enable_warnings
 
9
 
 
10
#
 
11
# Bug#17374: select ... like 'A%' operator fails
 
12
# to find value on columuns with key
 
13
#
 
14
set names latin2;
 
15
select 'A' = 'a' collate latin2_czech_cs;
 
16
create table t1 (
 
17
    id  int(5) not null,    
 
18
    tt  char(255) not null
 
19
) character set latin2 collate latin2_czech_cs;
 
20
insert into t1 values (1,'Aa');
 
21
insert into t1 values (2,'Aas');
 
22
alter table t1 add primary key aaa(tt); 
 
23
select * from t1 where tt like 'Aa%';
 
24
select * from t1 ignore index (primary) where tt like 'Aa%';
 
25
select * from t1 where tt like '%Aa%';
 
26
select * from t1 where tt like 'AA%';
 
27
select * from t1 ignore index (primary) where tt like 'AA%';
 
28
select * from t1 where tt like '%AA%';
 
29
 
 
30
# End of 4.1 tests
 
31
 
 
32
drop table t1;