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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ebc2976f
Commit
ebc2976f
authored
Jun 28, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug #745
(resolving fields of reduced subselect)
parent
08f8ab59
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+3
-0
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+2
-0
sql/sql_union.cc
sql/sql_union.cc
+2
-1
No files found.
mysql-test/r/subselect.result
View file @
ebc2976f
...
@@ -1172,3 +1172,6 @@ a b
...
@@ -1172,3 +1172,6 @@ a b
test test
test test
test1 test1
test1 test1
drop table if exists t1;
drop table if exists t1;
(SELECT 1 as a) UNION (SELECT 1) ORDER BY (SELECT a+0);
a
1
mysql-test/t/subselect.test
View file @
ebc2976f
...
@@ -763,3 +763,5 @@ CREATE TABLE `t1` (
...
@@ -763,3 +763,5 @@ CREATE TABLE `t1` (
INSERT
INTO
t1
(
id
,
pseudo
,
email
)
VALUES
(
1
,
'test'
,
'test'
),(
2
,
'test1'
,
'test1'
);
INSERT
INTO
t1
(
id
,
pseudo
,
email
)
VALUES
(
1
,
'test'
,
'test'
),(
2
,
'test1'
,
'test1'
);
SELECT
pseudo
as
a
,
pseudo
as
b
FROM
t1
GROUP
BY
(
SELECT
a
)
ORDER
BY
(
SELECT
id
*
1
);
SELECT
pseudo
as
a
,
pseudo
as
b
FROM
t1
GROUP
BY
(
SELECT
a
)
ORDER
BY
(
SELECT
id
*
1
);
drop
table
if
exists
t1
;
drop
table
if
exists
t1
;
(
SELECT
1
as
a
)
UNION
(
SELECT
1
)
ORDER
BY
(
SELECT
a
+
0
);
sql/sql_union.cc
View file @
ebc2976f
...
@@ -344,7 +344,8 @@ int st_select_lex_unit::exec()
...
@@ -344,7 +344,8 @@ int st_select_lex_unit::exec()
if
(
select_limit_cnt
==
HA_POS_ERROR
)
if
(
select_limit_cnt
==
HA_POS_ERROR
)
thd
->
options
&=
~
OPTION_FOUND_ROWS
;
thd
->
options
&=
~
OPTION_FOUND_ROWS
;
fake_select
->
ftfunc_list
=
&
empty_list
;
fake_select
->
ftfunc_list
=
&
empty_list
;
fake_select
->
table_list
.
link_in_list
((
byte
*
)
&
result_table_list
,
(
byte
**
)
&
result_table_list
.
next
);
res
=
mysql_select
(
thd
,
&
ref_pointer_array
,
&
result_table_list
,
res
=
mysql_select
(
thd
,
&
ref_pointer_array
,
&
result_table_list
,
0
,
item_list
,
NULL
,
0
,
item_list
,
NULL
,
global_parameters
->
order_list
.
elements
,
global_parameters
->
order_list
.
elements
,
...
...
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