mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1-opt
into moonbone.local:/work/allany-4.1-mysql
This commit is contained in:
@@ -2835,3 +2835,21 @@ a
|
|||||||
4
|
4
|
||||||
DROP TABLE t1,t2,t3;
|
DROP TABLE t1,t2,t3;
|
||||||
purge master logs before (select adddate(current_timestamp(), interval -4 day));
|
purge master logs before (select adddate(current_timestamp(), interval -4 day));
|
||||||
|
select 1 from dual where 1 < any (select 2);
|
||||||
|
1
|
||||||
|
1
|
||||||
|
select 1 from dual where 1 < all (select 2);
|
||||||
|
1
|
||||||
|
1
|
||||||
|
select 1 from dual where 2 > any (select 1);
|
||||||
|
1
|
||||||
|
1
|
||||||
|
select 1 from dual where 2 > all (select 1);
|
||||||
|
1
|
||||||
|
1
|
||||||
|
select 1 from dual where 1 < any (select 2 from dual);
|
||||||
|
1
|
||||||
|
1
|
||||||
|
select 1 from dual where 1 < all (select 2 from dual where 1!=1);
|
||||||
|
1
|
||||||
|
1
|
||||||
|
@@ -1820,4 +1820,14 @@ DROP TABLE t1,t2,t3;
|
|||||||
|
|
||||||
purge master logs before (select adddate(current_timestamp(), interval -4 day));
|
purge master logs before (select adddate(current_timestamp(), interval -4 day));
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#16302: Quantified subquery without any tables gives wrong results
|
||||||
|
#
|
||||||
|
select 1 from dual where 1 < any (select 2);
|
||||||
|
select 1 from dual where 1 < all (select 2);
|
||||||
|
select 1 from dual where 2 > any (select 1);
|
||||||
|
select 1 from dual where 2 > all (select 1);
|
||||||
|
select 1 from dual where 1 < any (select 2 from dual);
|
||||||
|
select 1 from dual where 1 < all (select 2 from dual where 1!=1);
|
||||||
# End of 4.1 tests
|
# End of 4.1 tests
|
||||||
|
@@ -705,7 +705,8 @@ Item_in_subselect::single_value_transformer(JOIN *join,
|
|||||||
if (!select_lex->group_list.elements &&
|
if (!select_lex->group_list.elements &&
|
||||||
!select_lex->having &&
|
!select_lex->having &&
|
||||||
!select_lex->with_sum_func &&
|
!select_lex->with_sum_func &&
|
||||||
!(select_lex->next_select()))
|
!(select_lex->next_select()) &&
|
||||||
|
select_lex->table_list.elements)
|
||||||
{
|
{
|
||||||
Item_sum_hybrid *item;
|
Item_sum_hybrid *item;
|
||||||
if (func->l_op())
|
if (func->l_op())
|
||||||
|
Reference in New Issue
Block a user