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
30ade5b5
Commit
30ade5b5
authored
Feb 23, 2005
by
mats@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#8412: Setting error code to 0 on statements that cannot fail.
parent
6ad51ffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sql/log.cc
sql/log.cc
+3
-1
No files found.
sql/log.cc
View file @
30ade5b5
...
...
@@ -1322,6 +1322,7 @@ COLLATION_CONNECTION=%u,COLLATION_DATABASE=%u,COLLATION_SERVER=%u",
(
uint
)
thd
->
variables
.
collation_server
->
number
);
Query_log_event
e
(
thd
,
buf
,
written
,
0
,
FALSE
);
e
.
set_log_pos
(
this
);
e
.
error_code
=
0
;
// This statement cannot fail (see [1]).
if
(
e
.
write
(
file
))
goto
err
;
}
...
...
@@ -1338,6 +1339,7 @@ COLLATION_CONNECTION=%u,COLLATION_DATABASE=%u,COLLATION_SERVER=%u",
"'"
,
NullS
);
Query_log_event
e
(
thd
,
buf
,
buf_end
-
buf
,
0
,
FALSE
);
e
.
set_log_pos
(
this
);
e
.
error_code
=
0
;
// This statement cannot fail (see [1]).
if
(
e
.
write
(
file
))
goto
err
;
}
...
...
@@ -1389,8 +1391,8 @@ COLLATION_CONNECTION=%u,COLLATION_DATABASE=%u,COLLATION_SERVER=%u",
p
=
strmov
(
strmov
(
buf
,
"SET CHARACTER SET "
),
thd
->
variables
.
convert_set
->
name
);
Query_log_event
e
(
thd
,
buf
,
(
ulong
)
(
p
-
buf
),
0
);
e
.
error_code
=
0
;
// This statement cannot fail (see [1]).
e
.
set_log_pos
(
this
);
e
.
error_code
=
0
;
// This statement cannot fail (see [1]).
if
(
e
.
write
(
file
))
goto
err
;
}
...
...
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