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
b3936e42
Commit
b3936e42
authored
Mar 28, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aftermerge fix
parent
e0c2ff9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
sql/sql_derived.cc
sql/sql_derived.cc
+2
-7
sql/sql_parse.cc
sql/sql_parse.cc
+2
-4
No files found.
sql/sql_derived.cc
View file @
b3936e42
...
...
@@ -154,13 +154,8 @@ static int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
res
=
mysql_union
(
thd
,
lex
,
derived_result
,
unit
);
else
{
unit
->
offset_limit_cnt
=
first_select
->
offset_limit
;
unit
->
select_limit_cnt
=
first_select
->
select_limit
+
first_select
->
offset_limit
;
if
(
unit
->
select_limit_cnt
<
first_select
->
select_limit
)
unit
->
select_limit_cnt
=
HA_POS_ERROR
;
if
(
unit
->
select_limit_cnt
==
HA_POS_ERROR
)
first_select
->
options
&=
~
OPTION_FOUND_ROWS
;
unit
->
set_limit
(
first_select
->
select_limit
,
first_select
->
offset_limit
,
first_select
);
lex
->
current_select
=
first_select
;
res
=
mysql_select
(
thd
,
&
first_select
->
ref_pointer_array
,
...
...
sql/sql_parse.cc
View file @
b3936e42
...
...
@@ -2580,10 +2580,8 @@ mysql_execute_command(THD *thd)
select_lex
->
options
|=
SELECT_NO_UNLOCK
;
select_result
*
result
;
unit
->
offset_limit_cnt
=
select_lex
->
offset_limit
;
unit
->
select_limit_cnt
=
select_lex
->
select_limit
+
select_lex
->
offset_limit
;
if
(
unit
->
select_limit_cnt
<
select_lex
->
select_limit
)
unit
->
select_limit_cnt
=
HA_POS_ERROR
;
// No limit
unit
->
set_limit
(
select_lex
->
select_limit
,
select_lex
->
offset_limit
,
select_lex
);
if
(
find_real_table_in_list
(
tables
->
next
,
tables
->
db
,
tables
->
real_name
))
{
...
...
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