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
2a33b051
Commit
2a33b051
authored
Jul 01, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed uninitialized pointer
parent
088cd27e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
sql/mysqld.cc
sql/mysqld.cc
+6
-1
sql/sql_parse.cc
sql/sql_parse.cc
+5
-0
No files found.
sql/mysqld.cc
View file @
2a33b051
...
...
@@ -1821,7 +1821,12 @@ extern "C" int my_message_sql(uint error, const char *str,
DBUG_PRINT
(
"error"
,
(
"Message: '%s'"
,
str
));
if
((
thd
=
current_thd
))
{
if
(
thd
->
lex
.
current_select
->
no_error
&&
!
thd
->
is_fatal_error
)
/*
thd->lex.current_select equel to zero if lex structure is not inited
(not query command (COM_QUERY))
*/
if
(
thd
->
lex
.
current_select
&&
thd
->
lex
.
current_select
->
no_error
&&
!
thd
->
is_fatal_error
)
{
DBUG_PRINT
(
"error"
,
(
"above error converted to warning"
));
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
error
,
str
);
...
...
sql/sql_parse.cc
View file @
2a33b051
...
...
@@ -1057,6 +1057,11 @@ bool do_command(THD *thd)
net
=
&
thd
->
net
;
thd
->
current_tablenr
=
0
;
/*
indicator of uninitialized lex => normal flow of errors handling
(see my_message_sql)
*/
thd
->
lex
.
current_select
=
0
;
packet
=
0
;
old_timeout
=
net
->
read_timeout
;
...
...
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