summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_system.test
blob: f3b9b4ffc3f62a83293de3a5b26c68e5201b4450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# system functions
#

select database();
select charset(database());
select database() = "test";
select database() = _utf8"test";
select database() = _latin1"test";

select user() like "%@%";
select user() like _utf8"%@%";
select user() like _latin1"%@%";
select charset(user());

select version()>="3.23.29";
select version()>=_utf8"3.23.29";
select version()>=_latin1"3.23.29";
select charset(version());
explain extended select database(), user();

create table t1 (version char(40)) select database(), user(), version() as 'version';
show create table t1;
drop table t1;

select TRUE,FALSE,NULL;