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
c5179ae0
Commit
c5179ae0
authored
May 24, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
parents
470ed614
39e40944
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
mysql-test/r/union.result
mysql-test/r/union.result
+19
-0
mysql-test/t/union.test
mysql-test/t/union.test
+11
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
mysql-test/r/union.result
View file @
c5179ae0
...
...
@@ -1235,3 +1235,22 @@ show columns from t2;
Field Type Null Key Default Extra
a varchar(3) YES NULL
drop table t2, t1;
create table t1 ( id int not null auto_increment, primary key (id), col1 int);
insert into t1 (col1) values (2),(3),(4),(5),(6);
select 99 union all select id from t1 order by 1;
99
1
2
3
4
5
99
select id from t1 union all select 99 order by 1;
id
1
2
3
4
5
99
drop table t1;
mysql-test/t/union.test
View file @
c5179ae0
...
...
@@ -742,3 +742,14 @@ create table t2 select a from t1 union select c from t1;
create
table
t2
select
a
from
t1
union
select
b
from
t1
;
show
columns
from
t2
;
drop
table
t2
,
t1
;
#
# Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM
#
create
table
t1
(
id
int
not
null
auto_increment
,
primary
key
(
id
),
col1
int
);
insert
into
t1
(
col1
)
values
(
2
),(
3
),(
4
),(
5
),(
6
);
select
99
union
all
select
id
from
t1
order
by
1
;
select
id
from
t1
union
all
select
99
order
by
1
;
drop
table
t1
;
sql/sql_yacc.yy
View file @
c5179ae0
...
...
@@ -2449,7 +2449,7 @@ select_part2:
select_into select_lock_type;
select_into:
opt_limit_clause {}
opt_
order_clause opt_
limit_clause {}
| into
| select_from
| into select_from
...
...
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