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
e6819745
Commit
e6819745
authored
Aug 27, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adopt to the introduction of a separate CLIENT_MULTI_RESULTS flag.
parent
55e776d1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
sql/sp_head.cc
sql/sp_head.cc
+1
-1
sql/sp_head.h
sql/sp_head.h
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+3
-3
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
sql/sp_head.cc
View file @
e6819745
...
...
@@ -120,7 +120,7 @@ sp_head::operator delete(void *ptr, size_t size)
}
sp_head
::
sp_head
()
:
Sql_alloc
(),
m_simple_case
(
FALSE
),
m_multi_
query
(
FALSE
),
m_free_list
(
NULL
)
:
Sql_alloc
(),
m_simple_case
(
FALSE
),
m_multi_
results
(
FALSE
),
m_free_list
(
NULL
)
{
DBUG_ENTER
(
"sp_head::sp_head"
);
...
...
sql/sp_head.h
View file @
e6819745
...
...
@@ -46,7 +46,7 @@ public:
int
m_type
;
// TYPE_ENUM_FUNCTION or TYPE_ENUM_PROCEDURE
enum
enum_field_types
m_returns
;
// For FUNCTIONs only
my_bool
m_simple_case
;
// TRUE if parsing simple case, FALSE otherwise
my_bool
m_multi_
query
;
// TRUE if a procedure with SELECT(s)
my_bool
m_multi_
results
;
// TRUE if a procedure with SELECT(s)
uint
m_old_cmq
;
// Old CLIENT_MULTI_QUERIES value
#if NOT_USED_NOW
// QQ We're not using this at the moment.
...
...
sql/sql_parse.cc
View file @
e6819745
...
...
@@ -3309,9 +3309,9 @@ mysql_execute_command(THD *thd)
my_bool
nsok
=
thd
->
net
.
no_send_ok
;
thd
->
net
.
no_send_ok
=
TRUE
;
#endif
if
(
sp
->
m_multi_
query
)
if
(
sp
->
m_multi_
results
)
{
if
(
!
(
thd
->
client_capabilities
&
CLIENT_MULTI_
QUERIE
S
))
if
(
!
(
thd
->
client_capabilities
&
CLIENT_MULTI_
RESULT
S
))
{
send_error
(
thd
,
ER_SP_BADSELECT
);
#ifndef EMBEDDED_LIBRARY
...
...
@@ -3328,7 +3328,7 @@ mysql_execute_command(THD *thd)
#ifndef EMBEDDED_LIBRARY
thd
->
net
.
no_send_ok
=
nsok
;
#endif
if
(
sp
->
m_multi_
query
)
if
(
sp
->
m_multi_
results
)
{
if
(
!
smrx
)
thd
->
server_status
&=
~
SERVER_MORE_RESULTS_EXISTS
;
...
...
sql/sql_yacc.yy
View file @
e6819745
...
...
@@ -1203,7 +1203,7 @@ sp_proc_stmt:
if (lex->sql_command == SQLCOM_SELECT && !lex->result)
{
/* We maybe have one or more SELECT without INTO */
lex->sphead->m_multi_
query
= TRUE;
lex->sphead->m_multi_
results
= TRUE;
}
/* Don't add an instruction for empty SET statements.
** (This happens if the SET only contained local variables,
...
...
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