Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9477a2a9
Commit
9477a2a9
authored
Apr 25, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
e3fb8e95
f033fbd9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
mysql-test/main/cte_recursive.result
mysql-test/main/cte_recursive.result
+4
-1
mysql-test/main/cte_recursive.test
mysql-test/main/cte_recursive.test
+6
-1
mysql-test/main/disabled.def
mysql-test/main/disabled.def
+0
-1
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
mysql-test/main/cte_recursive.result
View file @
9477a2a9
...
...
@@ -3089,16 +3089,19 @@ set big_tables=default;
#
# MDEV-15571: using recursive cte with big_tables enabled
#
create table t1 (a bigint);
insert into t1 values(1);
set big_tables=1;
with recursive qn as
(
select
1 as a from dual
select
a from t1
union all
select a*2000 from qn where a<10000000000000000000
)
select * from qn;
ERROR 22003: BIGINT value is out of range in '`qn`.`a` * 2000'
set big_tables=default;
drop table t1;
#
# MDEV-15556: using recursive cte with big_tables enabled
# when recursive tables are accessed by key
...
...
mysql-test/main/cte_recursive.test
View file @
9477a2a9
...
...
@@ -2114,12 +2114,15 @@ set big_tables=default;
--
echo
# MDEV-15571: using recursive cte with big_tables enabled
--
echo
#
create
table
t1
(
a
bigint
);
insert
into
t1
values
(
1
);
set
big_tables
=
1
;
--
error
ER_DATA_OUT_OF_RANGE
with
recursive
qn
as
(
select
1
as
a
from
dual
select
a
from
t1
union
all
select
a
*
2000
from
qn
where
a
<
10000000000000000000
)
...
...
@@ -2127,6 +2130,8 @@ select * from qn;
set
big_tables
=
default
;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-15556: using recursive cte with big_tables enabled
--
echo
# when recursive tables are accessed by key
...
...
mysql-test/main/disabled.def
View file @
9477a2a9
...
...
@@ -21,4 +21,3 @@ innodb-wl5522-debug-zip : broken upstream
innodb_bug12902967 : broken upstream
file_contents : MDEV-6526 these files are not installed anymore
max_statement_time : cannot possibly work, depends on timing
cte_recursive : Merge problem (MDEV-15575)
sql/sql_select.cc
View file @
9477a2a9
...
...
@@ -1605,6 +1605,8 @@ JOIN::optimize_inner()
/* Convert all outer joins to inner joins if possible */
conds
=
simplify_joins
(
this
,
join_list
,
conds
,
TRUE
,
FALSE
);
if
(
thd
->
is_error
())
DBUG_RETURN
(
1
);
if
(
select_lex
->
save_leaf_tables
(
thd
))
DBUG_RETURN
(
1
);
build_bitmap_for_nested_joins
(
join_list
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment