mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#44367 valgrind warnings with find_in_set() functions
init 'wc' variable mysql-test/r/func_set.result: test result mysql-test/t/func_set.test: test case sql/item_func.cc: init 'wc' variable
This commit is contained in:
@ -103,3 +103,46 @@ CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL),
|
||||
CAST(DATE(NULL) AS DECIMAL), CAST(DATE(NULL) AS DECIMAL))
|
||||
8
|
||||
End of 5.0 tests
|
||||
drop table if exists t1;
|
||||
create table t1 (f1 set('test1','test2','test3') character set utf8 default null)
|
||||
engine=myisam default charset=latin1;
|
||||
insert into t1 values (''),(null),(null),(''),(''),('');
|
||||
select find_in_set(f1,f1) as a from t1,(select find_in_set(f1,f1) as b from t1) a;
|
||||
a
|
||||
0
|
||||
NULL
|
||||
NULL
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
NULL
|
||||
NULL
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
NULL
|
||||
NULL
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
NULL
|
||||
NULL
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
NULL
|
||||
NULL
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
NULL
|
||||
NULL
|
||||
0
|
||||
0
|
||||
0
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user