~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_system.test

  • Committer: Monty Taylor
  • Date: 2008-11-16 05:36:13 UTC
  • mto: (584.1.9 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116053613-bld4rqxhlkb49c02
Split out cache_row and type_holder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# system functions
3
 
#
4
 
 
5
 
select database();
6
 
select database() = "test";
7
 
 
8
 
--replace_column 1 #
9
 
select user() like "%@%";
10
 
 
11
 
select version() > "2009.01.756";
12
 
explain extended select database(), user();
13
 
 
14
 
create table t1 (version char(60)) select database(), user(), version() as 'version';
15
 
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
16
 
show create table t1;
17
 
drop table t1;
18
 
 
19
 
select TRUE,FALSE,NULL;
20
 
 
21
 
#
22
 
# Bug#12351: CONCAT with USER()/DATEBASE() and
23
 
# a constant and a column gets strange results
24
 
#
25
 
create table t1 (c1 char(5));
26
 
insert into t1 values('row 1');
27
 
insert into t1 values('row 2');
28
 
insert into t1 values('row 3');
29
 
select concat(SUBSTRING(user(), 0, 4), '--', c1) from t1;
30
 
select concat(database(), '--', c1) from t1;
31
 
drop table t1;
32
 
 
33
 
#
34
 
# Bug#8291 Illegal collation mix with USER() function
35
 
#
36
 
create table t1 (a char(10));
37
 
select * from t1 where a=version();
38
 
select * from t1 where a=database();
39
 
select * from t1 where a=user();
40
 
insert into t1 values ('a');
41
 
select left(concat(a,version()),1) from t1;
42
 
drop table t1;
43
 
 
44
 
# End of 4.1 tests