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
49dd5909
Commit
49dd5909
authored
Oct 06, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql/log.cc
set character set is not being logged
parent
f452ab6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
sql/log.cc
sql/log.cc
+19
-0
No files found.
sql/log.cc
View file @
49dd5909
...
...
@@ -475,6 +475,25 @@ void MYSQL_LOG::write(Query_log_event* event_info)
goto
err
;
}
}
if
(
thd
->
convert_set
)
{
char
buf
[
1024
]
=
"SET CHARACTER SET "
;
char
*
p
=
strend
(
buf
);
p
=
strmov
(
p
,
thd
->
convert_set
->
name
);
int
save_query_length
=
thd
->
query_length
;
// just in case somebody wants it later
thd
->
query_length
=
(
uint
)(
p
-
buf
);
Query_log_event
e
(
thd
,
buf
);
if
(
e
.
write
(
file
))
{
sql_print_error
(
ER
(
ER_ERROR_ON_WRITE
),
name
,
errno
);
goto
err
;
}
thd
->
query_length
=
save_query_length
;
// clean up
}
if
(
event_info
->
write
(
file
))
{
...
...
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