mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fix of LP bug#992380 + revise fix_fields about missing with_subselect collection
The problem is that some fix_fields do not call Item_func::fix_fields and do not collect with subselect_information.
This commit is contained in:
@@ -160,3 +160,23 @@ SELECT LEAST(1.1,1.2,NULL,1.0) FROM DUAL;
|
||||
SELECT GREATEST(1.5E+2,1.3E+2,NULL) FROM DUAL;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
# test of replacing NOT <field>
|
||||
#
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1), (100), (0), (NULL);
|
||||
|
||||
select not a from t1;
|
||||
explain extended select not a from t1;
|
||||
|
||||
select * from t1 where not a;
|
||||
explain extended select * from t1 where not a;
|
||||
|
||||
select not (a+0) from t1;
|
||||
explain extended select not (a+0) from t1;
|
||||
|
||||
select * from t1 where not (a+0);
|
||||
explain extended select * from t1 where not (a+0);
|
||||
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user