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
b440d2cf
Commit
b440d2cf
authored
Mar 17, 2004
by
unknown
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-merge
parents
6022c31a
36dd9723
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
mysql-test/r/sp.result
mysql-test/r/sp.result
+6
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+10
-0
sql/sp.cc
sql/sp.cc
+14
-1
No files found.
mysql-test/r/sp.result
View file @
b440d2cf
...
...
@@ -989,6 +989,12 @@ call bug2614()|
call bug2614()|
drop table t3|
drop procedure bug2614|
create function bug2674 () returns int
return @@sort_buffer_size|
select bug2674()|
bug2674()
262136
drop function bug2674|
drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
create procedure ifac(n int unsigned)
...
...
mysql-test/t/sp.test
View file @
b440d2cf
...
...
@@ -1138,6 +1138,16 @@ call bug2614()|
drop
table
t3
|
drop
procedure
bug2614
|
#
# BUG#2674
#
create
function
bug2674
()
returns
int
return
@@
sort_buffer_size
|
select
bug2674
()
|
drop
function
bug2674
|
#
# Some "real" examples
...
...
sql/sp.cc
View file @
b440d2cf
...
...
@@ -230,7 +230,20 @@ db_find_routine(THD *thd, int type, char *name, uint namelen, sp_head **sphp)
goto
done
;
}
{
/* This is something of a kludge. We need to initialize some fields
* 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.
*/
List
<
Item
>
vals
=
thd
->
lex
->
value_list
;
mysql_init_query
(
thd
,
TRUE
);
lex_start
(
thd
,
(
uchar
*
)
defstr
,
deflen
);
thd
->
lex
->
value_list
=
vals
;
}
if
(
yyparse
(
thd
)
||
thd
->
is_fatal_error
||
thd
->
lex
->
sphead
==
NULL
)
{
LEX
*
newlex
=
thd
->
lex
;
...
...
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