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

« back to all changes in this revision

Viewing changes to mysql-test/include/ctype_regex.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
# To test a desired collation, set session.collation_connection to
 
3
# this collation before including this file
 
4
#
 
5
 
 
6
--disable_warnings
 
7
drop table if exists t1;
 
8
--enable_warnings
 
9
 
 
10
#
 
11
# Create a table with two varchar(64) null-able column,
 
12
# using current values of
 
13
# @@character_set_connection and  @@collation_connection.
 
14
#
 
15
 
 
16
create table t1 as
 
17
select repeat(' ', 64) as s1, repeat(' ',64) as s2
 
18
union
 
19
select null, null;
 
20
show create table t1;
 
21
delete from t1;
 
22
 
 
23
insert into t1 values('aaa','aaa');
 
24
insert into t1 values('aaa|qqq','qqq');
 
25
insert into t1 values('gheis','^[^a-dXYZ]+$');
 
26
insert into t1 values('aab','^aa?b');
 
27
insert into t1 values('Baaan','^Ba*n');
 
28
insert into t1 values('aaa','qqq|aaa');
 
29
insert into t1 values('qqq','qqq|aaa');
 
30
 
 
31
insert into t1 values('bbb','qqq|aaa');
 
32
insert into t1 values('bbb','qqq');
 
33
insert into t1 values('aaa','aba');
 
34
 
 
35
insert into t1 values(null,'abc');
 
36
insert into t1 values('def',null);
 
37
insert into t1 values(null,null);
 
38
insert into t1 values('ghi','ghi[');
 
39
 
 
40
select HIGH_PRIORITY s1 regexp s2 from t1;
 
41
 
 
42
drop table t1;