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
de9f159c
Commit
de9f159c
authored
May 30, 2007
by
anozdrin/alik@ibm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. Fix memory leak.
2. Use multibyte-safe constant.
parent
072ff4e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sql/sp.cc
sql/sp.cc
+3
-3
sql/sp_head.cc
sql/sp_head.cc
+1
-1
No files found.
sql/sp.cc
View file @
de9f159c
...
...
@@ -1014,8 +1014,8 @@ sp_show_create_routine(THD *thd, int type, sp_name *name)
{
bool
err_status
=
TRUE
;
sp_head
*
sp
;
sp_cache
*
cache
=
type
==
TYPE_ENUM_PROCEDURE
?
thd
->
sp_proc_cache
:
thd
->
sp_func_cache
;
sp_cache
*
*
cache
=
type
==
TYPE_ENUM_PROCEDURE
?
&
thd
->
sp_proc_cache
:
&
thd
->
sp_func_cache
;
DBUG_ENTER
(
"sp_show_create_routine"
);
DBUG_PRINT
(
"enter"
,
(
"name: %.*s"
,
name
->
m_name
.
length
,
name
->
m_name
.
str
));
...
...
@@ -1038,7 +1038,7 @@ sp_show_create_routine(THD *thd, int type, sp_name *name)
thd
->
variables
.
max_sp_recursion_depth
++
;
}
if
((
sp
=
sp_find_routine
(
thd
,
type
,
name
,
&
cache
,
FALSE
)))
if
((
sp
=
sp_find_routine
(
thd
,
type
,
name
,
cache
,
FALSE
)))
err_status
=
sp
->
show_create_routine
(
thd
,
type
);
if
(
type
==
TYPE_ENUM_PROCEDURE
)
...
...
sql/sp_head.cc
View file @
de9f159c
...
...
@@ -2141,7 +2141,7 @@ sp_head::show_create_routine(THD *thd, int type)
/* Send header. */
fields
.
push_back
(
new
Item_empty_string
(
col1_caption
,
NAME_LEN
));
fields
.
push_back
(
new
Item_empty_string
(
col1_caption
,
NAME_
CHAR_
LEN
));
fields
.
push_back
(
new
Item_empty_string
(
"sql_mode"
,
sql_mode
.
length
));
{
...
...
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