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
6cca51f0
Commit
6cca51f0
authored
May 19, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed references to uninitialized memory
parent
96d649d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
sql/sp.cc
sql/sp.cc
+4
-5
sql/sql_lex.cc
sql/sql_lex.cc
+1
-1
No files found.
sql/sp.cc
View file @
6cca51f0
...
...
@@ -72,6 +72,9 @@ db_find_routine_aux(THD *thd, int type, sp_name *name,
DBUG_PRINT
(
"enter"
,
(
"type: %d name: %*s"
,
type
,
name
->
m_name
.
length
,
name
->
m_name
.
str
));
*
opened
=
FALSE
;
*
tablep
=
0
;
/*
Speed up things if mysql.proc doesn't exists. mysql_proc_table_exists
is set when we create or read stored procedure or on flush privileges.
...
...
@@ -88,9 +91,7 @@ db_find_routine_aux(THD *thd, int type, sp_name *name,
strcmp
(
table
->
s
->
table_name
,
"proc"
)
==
0
)
break
;
}
if
(
table
)
*
opened
=
FALSE
;
else
if
(
!
table
)
{
TABLE_LIST
tables
;
...
...
@@ -99,7 +100,6 @@ db_find_routine_aux(THD *thd, int type, sp_name *name,
tables
.
table_name
=
tables
.
alias
=
(
char
*
)
"proc"
;
if
(
!
(
table
=
open_ltable
(
thd
,
&
tables
,
ltype
)))
{
*
tablep
=
NULL
;
/*
Under explicit LOCK TABLES or in prelocked mode we should not
say that mysql.proc table does not exist if we are unable to
...
...
@@ -131,7 +131,6 @@ db_find_routine_aux(THD *thd, int type, sp_name *name,
key
,
table
->
key_info
->
key_length
,
HA_READ_KEY_EXACT
))
{
*
tablep
=
NULL
;
DBUG_RETURN
(
SP_KEY_NOT_FOUND
);
}
*
tablep
=
table
;
...
...
sql/sql_lex.cc
View file @
6cca51f0
...
...
@@ -1101,7 +1101,7 @@ void st_select_lex::init_query()
embedding
=
leaf_tables
=
0
;
item_list
.
empty
();
join
=
0
;
where
=
prep_where
=
0
;
having
=
where
=
prep_where
=
0
;
olap
=
UNSPECIFIED_OLAP_TYPE
;
having_fix_field
=
0
;
resolve_mode
=
NOMATTER_MODE
;
...
...
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