mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
func_system.result, func_system.test:
adding test case item_strfunc.cc: Bug#12351 CONCAT with USER()/DATEBASE() and a column gets strange results. Mark created Item_str as constant, so CONCAT cannot reuse it for optimization purposes.
This commit is contained in:
@@ -31,6 +31,18 @@ drop table t1;
|
||||
|
||||
select TRUE,FALSE,NULL;
|
||||
|
||||
#
|
||||
# Bug#12351: CONCAT with USER()/DATEBASE() and
|
||||
# a constant and a column gets strange results
|
||||
#
|
||||
create table t1 (c1 char(5)) character set=latin1;
|
||||
insert into t1 values('row 1');
|
||||
insert into t1 values('row 2');
|
||||
insert into t1 values('row 3');
|
||||
select concat(user(), '--', c1) from t1;
|
||||
select concat(database(), '--', c1) from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug#8291 Illegal collation mix with USER() function
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user