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
722d19c3
Commit
722d19c3
authored
Dec 04, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed another compiler error on HP-UX.
parent
2eb70647
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/sp_head.cc
sql/sp_head.cc
+3
-2
No files found.
sql/sp_head.cc
View file @
722d19c3
...
@@ -537,6 +537,7 @@ sp_head::restore_lex(THD *thd)
...
@@ -537,6 +537,7 @@ sp_head::restore_lex(THD *thd)
DBUG_ENTER
(
"sp_head::restore_lex"
);
DBUG_ENTER
(
"sp_head::restore_lex"
);
LEX
*
sublex
=
thd
->
lex
;
LEX
*
sublex
=
thd
->
lex
;
LEX
*
oldlex
=
(
LEX
*
)
m_lex
.
pop
();
LEX
*
oldlex
=
(
LEX
*
)
m_lex
.
pop
();
SELECT_LEX
*
sl
;
if
(
!
oldlex
)
if
(
!
oldlex
)
return
;
// Nothing to restore
return
;
// Nothing to restore
...
@@ -544,7 +545,7 @@ sp_head::restore_lex(THD *thd)
...
@@ -544,7 +545,7 @@ sp_head::restore_lex(THD *thd)
// Update some state in the old one first
// Update some state in the old one first
oldlex
->
ptr
=
sublex
->
ptr
;
oldlex
->
ptr
=
sublex
->
ptr
;
oldlex
->
next_state
=
sublex
->
next_state
;
oldlex
->
next_state
=
sublex
->
next_state
;
for
(
SELECT_LEX
*
sl
=
sublex
->
all_selects_list
;
for
(
sl
=
sublex
->
all_selects_list
;
sl
;
sl
;
sl
=
sl
->
next_select_in_list
())
sl
=
sl
->
next_select_in_list
())
{
{
...
@@ -584,7 +585,7 @@ sp_head::restore_lex(THD *thd)
...
@@ -584,7 +585,7 @@ sp_head::restore_lex(THD *thd)
// QQ ...or just open tables in thd->open_tables?
// QQ ...or just open tables in thd->open_tables?
// This is not entirerly clear at the moment, but for now, we collect
// This is not entirerly clear at the moment, but for now, we collect
// tables here.
// tables here.
for
(
SELECT_LEX
*
sl
=
sublex
.
all_selects_list
;
for
(
sl
=
sublex
.
all_selects_list
;
sl
;
sl
;
sl
=
sl
->
next_select
())
sl
=
sl
->
next_select
())
{
{
...
...
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