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
203728ae
Commit
203728ae
authored
Feb 14, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed memory leak in ANALIZE initialization error reporting
parent
9dd13a9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sql/sql_analyse.cc
sql/sql_analyse.cc
+4
-0
No files found.
sql/sql_analyse.cc
View file @
203728ae
...
...
@@ -58,6 +58,7 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
if
((
*
param
->
item
)
->
type
()
!=
Item
::
INT_ITEM
||
(
*
param
->
item
)
->
val
()
<
0
)
{
delete
pc
;
net_printf
(
&
thd
->
net
,
ER_WRONG_PARAMETERS_TO_PROCEDURE
,
proc_name
);
return
0
;
}
...
...
@@ -65,6 +66,7 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
param
=
param
->
next
;
if
(
param
->
next
)
// no third parameter possible
{
delete
pc
;
net_printf
(
&
thd
->
net
,
ER_WRONG_PARAMCOUNT_TO_PROCEDURE
,
proc_name
);
return
0
;
}
...
...
@@ -72,6 +74,7 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
if
((
*
param
->
item
)
->
type
()
!=
Item
::
INT_ITEM
||
(
*
param
->
item
)
->
val
()
<
0
)
{
delete
pc
;
net_printf
(
&
thd
->
net
,
ER_WRONG_PARAMETERS_TO_PROCEDURE
,
proc_name
);
return
0
;
}
...
...
@@ -80,6 +83,7 @@ proc_analyse_init(THD *thd, ORDER *param, select_result *result,
else
if
((
*
param
->
item
)
->
type
()
!=
Item
::
INT_ITEM
||
(
*
param
->
item
)
->
val
()
<
0
)
{
delete
pc
;
net_printf
(
&
thd
->
net
,
ER_WRONG_PARAMETERS_TO_PROCEDURE
,
proc_name
);
return
0
;
}
...
...
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