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
e4908b40
Commit
e4908b40
authored
Mar 02, 2005
by
pem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/local/bk/mysql-5.0
into mysql.com:/home/pem/work/mysql-5.0
parents
0aec332b
027c5a6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
mysql-test/r/sp.result
mysql-test/r/sp.result
+4
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+13
-0
sql/sp.cc
sql/sp.cc
+5
-3
No files found.
mysql-test/r/sp.result
View file @
e4908b40
...
...
@@ -2204,6 +2204,10 @@ call bug8757()|
delete from t1|
delete from t2|
drop procedure bug8757|
drop procedure if exists bug8762|
drop procedure if exists bug8762; create procedure bug8762() begin end|
drop procedure if exists bug8762; create procedure bug8762() begin end|
drop procedure bug8762|
drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
drop procedure if exists ifac|
...
...
mysql-test/t/sp.test
View file @
e4908b40
...
...
@@ -2714,6 +2714,19 @@ delete from t2|
drop
procedure
bug8757
|
#
# BUG#8762: Stored Procedures: Inconsistent behavior
# of DROP PROCEDURE IF EXISTS statement.
--
disable_warnings
drop
procedure
if
exists
bug8762
|
--
enable_warnings
# Doesn't exist
drop
procedure
if
exists
bug8762
;
create
procedure
bug8762
()
begin
end
|
# Does exist
drop
procedure
if
exists
bug8762
;
create
procedure
bug8762
()
begin
end
|
drop
procedure
bug8762
|
#
# Some "real" examples
#
...
...
sql/sp.cc
View file @
e4908b40
...
...
@@ -288,12 +288,14 @@ db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp)
* in thd->lex (the unit and master stuff), and the easiest way to
* do it is, is to call mysql_init_query(), but this unfortunately
* resets teh value_list where we keep the CALL parameters. So we
* copy the list and then restore it.
* copy the list and then restore it.
(... and found_semicolon too).
*/
List
<
Item
>
vals
=
thd
->
lex
->
value_list
;
List
<
Item
>
tmpvals
=
thd
->
lex
->
value_list
;
char
*
tmpfsc
=
thd
->
lex
->
found_semicolon
;
lex_start
(
thd
,
(
uchar
*
)
defstr
.
c_ptr
(),
defstr
.
length
());
thd
->
lex
->
value_list
=
vals
;
thd
->
lex
->
value_list
=
tmpvals
;
thd
->
lex
->
found_semicolon
=
tmpfsc
;
}
if
(
yyparse
(
thd
)
||
thd
->
is_fatal_error
||
thd
->
lex
->
sphead
==
NULL
)
...
...
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