mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
949875cb7b
Prove that the queries mentioned in Bugs#5980: NULL requires a characterset in a union works fine after recent changes related to itroducing more coercibility level: IRNORABLE and SYSCONST. mysql-test/r/ctype_utf8.result: Prove that the queries mentioned in Bugs#5980: NULL requires a characterset in a union works fine after recent changes related to itroducing more coercibility level: IRNORABLE and SYSCONST. mysql-test/r/func_system.result: Prove that the queries mentioned in Bugs#5980: NULL requires a characterset in a union works fine after recent changes related to itroducing more coercibility level: IRNORABLE and SYSCONST. mysql-test/t/ctype_utf8.test: Prove that the queries mentioned in Bugs#5980: NULL requires a characterset in a union works fine after recent changes related to itroducing more coercibility level: IRNORABLE and SYSCONST. mysql-test/t/func_system.test: Prove that the queries mentioned in Bugs#5980: NULL requires a characterset in a union works fine after recent changes related to itroducing more coercibility level: IRNORABLE and SYSCONST.
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
#
|
|
# 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 charset(charset(_utf8'a')), charset(collation(_utf8'a'));
|
|
select collation(charset(_utf8'a')), collation(collation(_utf8'a'));
|
|
create table t1 select charset(_utf8'a'), collation(_utf8'a');
|
|
show create table t1;
|
|
drop table t1;
|
|
|
|
select TRUE,FALSE,NULL;
|
|
|
|
#
|
|
# Bug#8291 Illegal collation mix with USER() function
|
|
#
|
|
create table t1 (a char(10)) character set latin1;
|
|
select * from t1 where a=version();
|
|
select * from t1 where a=database();
|
|
select * from t1 where a=user();
|
|
insert into t1 values ('a');
|
|
select left(concat(a,version()),1) from t1;
|
|
drop table t1;
|