mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
Merge 10.2 into 10.3
This commit is contained in:
commit
9477a2a9ba
4 changed files with 12 additions and 3 deletions
|
@ -3089,16 +3089,19 @@ set big_tables=default;
|
||||||
#
|
#
|
||||||
# MDEV-15571: using recursive cte with big_tables enabled
|
# MDEV-15571: using recursive cte with big_tables enabled
|
||||||
#
|
#
|
||||||
|
create table t1 (a bigint);
|
||||||
|
insert into t1 values(1);
|
||||||
set big_tables=1;
|
set big_tables=1;
|
||||||
with recursive qn as
|
with recursive qn as
|
||||||
(
|
(
|
||||||
select 1 as a from dual
|
select a from t1
|
||||||
union all
|
union all
|
||||||
select a*2000 from qn where a<10000000000000000000
|
select a*2000 from qn where a<10000000000000000000
|
||||||
)
|
)
|
||||||
select * from qn;
|
select * from qn;
|
||||||
ERROR 22003: BIGINT value is out of range in '`qn`.`a` * 2000'
|
ERROR 22003: BIGINT value is out of range in '`qn`.`a` * 2000'
|
||||||
set big_tables=default;
|
set big_tables=default;
|
||||||
|
drop table t1;
|
||||||
#
|
#
|
||||||
# MDEV-15556: using recursive cte with big_tables enabled
|
# MDEV-15556: using recursive cte with big_tables enabled
|
||||||
# when recursive tables are accessed by key
|
# when recursive tables are accessed by key
|
||||||
|
|
|
@ -2114,12 +2114,15 @@ set big_tables=default;
|
||||||
--echo # MDEV-15571: using recursive cte with big_tables enabled
|
--echo # MDEV-15571: using recursive cte with big_tables enabled
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
|
create table t1 (a bigint);
|
||||||
|
insert into t1 values(1);
|
||||||
|
|
||||||
set big_tables=1;
|
set big_tables=1;
|
||||||
|
|
||||||
--error ER_DATA_OUT_OF_RANGE
|
--error ER_DATA_OUT_OF_RANGE
|
||||||
with recursive qn as
|
with recursive qn as
|
||||||
(
|
(
|
||||||
select 1 as a from dual
|
select a from t1
|
||||||
union all
|
union all
|
||||||
select a*2000 from qn where a<10000000000000000000
|
select a*2000 from qn where a<10000000000000000000
|
||||||
)
|
)
|
||||||
|
@ -2127,6 +2130,8 @@ select * from qn;
|
||||||
|
|
||||||
set big_tables=default;
|
set big_tables=default;
|
||||||
|
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # MDEV-15556: using recursive cte with big_tables enabled
|
--echo # MDEV-15556: using recursive cte with big_tables enabled
|
||||||
--echo # when recursive tables are accessed by key
|
--echo # when recursive tables are accessed by key
|
||||||
|
|
|
@ -21,4 +21,3 @@ innodb-wl5522-debug-zip : broken upstream
|
||||||
innodb_bug12902967 : broken upstream
|
innodb_bug12902967 : broken upstream
|
||||||
file_contents : MDEV-6526 these files are not installed anymore
|
file_contents : MDEV-6526 these files are not installed anymore
|
||||||
max_statement_time : cannot possibly work, depends on timing
|
max_statement_time : cannot possibly work, depends on timing
|
||||||
cte_recursive : Merge problem (MDEV-15575)
|
|
||||||
|
|
|
@ -1605,6 +1605,8 @@ JOIN::optimize_inner()
|
||||||
|
|
||||||
/* Convert all outer joins to inner joins if possible */
|
/* Convert all outer joins to inner joins if possible */
|
||||||
conds= simplify_joins(this, join_list, conds, TRUE, FALSE);
|
conds= simplify_joins(this, join_list, conds, TRUE, FALSE);
|
||||||
|
if (thd->is_error())
|
||||||
|
DBUG_RETURN(1);
|
||||||
if (select_lex->save_leaf_tables(thd))
|
if (select_lex->save_leaf_tables(thd))
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
build_bitmap_for_nested_joins(join_list, 0);
|
build_bitmap_for_nested_joins(join_list, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue