2 # To test a desired collation, set session.collation_connection to
3 # this collation before including this file
7 drop
table if exists t1;
11 # Create a table with two varchar(64) null-able column,
12 # using current values of
13 # @@character_set_connection and @@collation_connection.
17 select repeat(
' ', 64) as s1, repeat(' ',64) as s2
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');
31 insert into t1 values('bbb','qqq|aaa');
32 insert into t1 values('bbb','qqq');
33 insert into t1 values('aaa','aba');
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[');
40 select HIGH_PRIORITY s1 regexp s2 from t1;