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
02211a60
Commit
02211a60
authored
Feb 18, 2003
by
pem@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes (adapting new SP code to 4.1 changes).
parent
97dc6a52
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
sql/sp.cc
sql/sp.cc
+2
-2
sql/sql_class.cc
sql/sql_class.cc
+9
-0
sql/sql_parse.cc
sql/sql_parse.cc
+4
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+3
-3
No files found.
sql/sp.cc
View file @
02211a60
...
...
@@ -48,12 +48,12 @@ sp_find_procedure(THD *thd, Item_string *iname)
HA_READ_KEY_EXACT
))
goto
done
;
if
((
defstr
=
get_field
(
&
thd
->
mem_root
,
table
,
1
))
==
NULL
)
if
((
defstr
=
get_field
(
&
thd
->
mem_root
,
table
->
field
[
1
]
))
==
NULL
)
goto
done
;
// QQ Set up our own mem_root here???
tmplex
=
lex_start
(
thd
,
(
uchar
*
)
defstr
,
strlen
(
defstr
));
if
(
yyparse
(
thd
)
||
thd
->
fatal_error
||
tmplex
->
sphead
==
NULL
)
if
(
yyparse
(
thd
)
||
thd
->
is_
fatal_error
||
tmplex
->
sphead
==
NULL
)
goto
done
;
// Error
else
sp
=
tmplex
->
sphead
;
...
...
sql/sql_class.cc
View file @
02211a60
...
...
@@ -1043,6 +1043,15 @@ bool select_dumpvar::send_data(List<Item> &items)
bool
select_dumpvar
::
send_eof
()
{
/* This mimics select_send::send_eof(), which unlocks this way.
* It appears to be necessary, since tables aren't unlock after
* selects otherwise.
*/
if
(
thd
->
lock
)
{
mysql_unlock_tables
(
thd
,
thd
->
lock
);
thd
->
lock
=
0
;
}
if
(
row_count
)
{
::
send_ok
(
thd
,
row_count
);
...
...
sql/sql_parse.cc
View file @
02211a60
...
...
@@ -2982,13 +2982,17 @@ mysql_execute_command(THD *thd)
}
else
{
#ifndef EMBEDDED_LIBRARY
// When executing substatements, they're assumed to send_error when
// it happens, but not to send_ok.
my_bool
nsok
=
thd
->
net
.
no_send_ok
;
thd
->
net
.
no_send_ok
=
TRUE
;
#endif
res
=
sp
->
execute
(
thd
);
#ifndef EMBEDDED_LIBRARY
thd
->
net
.
no_send_ok
=
nsok
;
#endif
if
(
res
==
0
)
send_ok
(
thd
);
...
...
sql/sql_yacc.yy
View file @
02211a60
...
...
@@ -1224,9 +1224,9 @@ sp_case:
;
sp_whens:
/* Empty */
| WHEN_SYM sp_case
| ELSE sp_proc_stmts
/* Empty */
{}
| WHEN_SYM sp_case
{}
| ELSE sp_proc_stmts
{}
;
sp_labeled_control:
...
...
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