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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6d3d37c6
Commit
6d3d37c6
authored
Sep 29, 2003
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix for #1375
parent
e9d7b859
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+2
-0
sql/log.cc
sql/log.cc
+2
-2
No files found.
libmysqld/lib_sql.cc
View file @
6d3d37c6
...
...
@@ -91,6 +91,8 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
memcpy
(
net
->
last_error
,
thd
->
net
.
last_error
,
sizeof
(
net
->
last_error
));
memcpy
(
net
->
sqlstate
,
thd
->
net
.
sqlstate
,
sizeof
(
net
->
sqlstate
));
}
else
net
->
last_error
[
0
]
=
0
;
mysql
->
warning_count
=
((
THD
*
)
mysql
->
thd
)
->
total_warn_count
;
return
result
;
}
...
...
sql/log.cc
View file @
6d3d37c6
...
...
@@ -1586,8 +1586,8 @@ bool MYSQL_LOG::write(THD *thd,const char *query, uint query_length,
tmp_errno
=
errno
;
}
if
(
my_b_printf
(
&
log_file
,
"# User@Host: %s[%s] @ %s [%s]
\n
"
,
thd
->
priv_user
,
thd
->
user
,
thd
->
priv_user
?
thd
->
priv_user
:
""
,
thd
->
user
?
thd
->
user
:
""
,
thd
->
host
?
thd
->
host
:
""
,
thd
->
ip
?
thd
->
ip
:
""
)
==
(
uint
)
-
1
)
tmp_errno
=
errno
;
...
...
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