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
02b9f5b5
Commit
02b9f5b5
authored
Jun 15, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge moonbone.local:/home/evgen/bk-trees/mysql-5.0-opt
into moonbone.local:/work/18175-bug-5.0-opt
parents
81bc8d3b
548b9aef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
0 deletions
+95
-0
mysql-test/r/union.result
mysql-test/r/union.result
+45
-0
mysql-test/t/union.test
mysql-test/t/union.test
+48
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+2
-0
No files found.
mysql-test/r/union.result
View file @
02b9f5b5
...
@@ -1306,3 +1306,48 @@ id
...
@@ -1306,3 +1306,48 @@ id
5
5
99
99
drop table t1;
drop table t1;
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1)) union
(select avg(1)) union (select avg(1)) union (select avg(1));
avg(1)
NULL
mysql-test/t/union.test
View file @
02b9f5b5
...
@@ -793,3 +793,51 @@ select id from t1 union all select 99 order by 1;
...
@@ -793,3 +793,51 @@ select id from t1 union all select 99 order by 1;
drop
table
t1
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
#
# Bug#18175: Union select over 129 tables with a sum function fails.
#
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
))
union
(
select
avg
(
1
));
sql/sql_yacc.yy
View file @
02b9f5b5
...
@@ -8752,6 +8752,8 @@ union_list:
...
@@ -8752,6 +8752,8 @@ union_list:
yyerror(ER(ER_SYNTAX_ERROR));
yyerror(ER(ER_SYNTAX_ERROR));
YYABORT;
YYABORT;
}
}
/* This counter shouldn't be incremented for UNION parts */
Lex->nest_level--;
if (mysql_new_select(lex, 0))
if (mysql_new_select(lex, 0))
YYABORT;
YYABORT;
mysql_init_select(lex);
mysql_init_select(lex);
...
...
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