~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_system.test

Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
 
5
5
select database();
6
 
select charset(database());
7
6
select database() = "test";
8
7
select database() = _utf8"test";
9
 
select database() = _latin1"test";
10
8
 
11
9
select user() like "%@%";
12
10
select user() like _utf8"%@%";
13
 
select user() like _latin1"%@%";
14
 
select charset(user());
15
11
 
16
12
select version()>="3.23.29";
17
13
select version()>=_utf8"3.23.29";
18
 
select version()>=_latin1"3.23.29";
19
 
select charset(version());
20
14
explain extended select database(), user();
21
15
 
22
16
create table t1 (version char(60)) select database(), user(), version() as 'version';
23
17
show create table t1;
24
18
drop table t1;
25
19
 
26
 
select charset(charset(_utf8'a')), charset(collation(_utf8'a'));
27
 
select collation(charset(_utf8'a')), collation(collation(_utf8'a'));
28
 
create table t1 select charset(_utf8'a'), collation(_utf8'a');
29
 
show create table t1;
30
 
drop table t1;
31
 
 
32
20
select TRUE,FALSE,NULL;
33
21
 
34
22
#
35
23
# Bug#12351: CONCAT with USER()/DATEBASE() and
36
24
# a constant and a column gets strange results
37
25
#
38
 
create table t1 (c1 char(5)) character set=latin1;
 
26
create table t1 (c1 char(5));
39
27
insert into t1 values('row 1');
40
28
insert into t1 values('row 2');
41
29
insert into t1 values('row 3');
46
34
#
47
35
# Bug#8291 Illegal collation mix with USER() function
48
36
#
49
 
create table t1 (a char(10)) character set latin1;
 
37
create table t1 (a char(10));
50
38
select * from t1 where a=version();
51
39
select * from t1 where a=database();
52
40
select * from t1 where a=user();