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
0d8bb019
Commit
0d8bb019
authored
Aug 10, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.6.32
parent
51ed64a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
storage/perfschema/table_events_statements.cc
storage/perfschema/table_events_statements.cc
+11
-5
No files found.
storage/perfschema/table_events_statements.cc
View file @
0d8bb019
/* Copyright (c) 2010, 201
5
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2010, 201
6
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -340,11 +340,17 @@ void table_events_statements_common::make_row_part_1(PFS_events_statements *stat
CHARSET_INFO
*
cs
=
get_charset
(
statement
->
m_sqltext_cs_number
,
MYF
(
0
));
size_t
valid_length
=
statement
->
m_sqltext_length
;
if
(
cs
!=
NULL
)
{
if
(
cs
->
mbmaxlen
>
1
)
{
int
well_formed_error
;
valid_length
=
cs
->
cset
->
well_formed_len
(
cs
,
statement
->
m_sqltext
,
statement
->
m_sqltext
+
valid_length
,
valid_length
,
&
well_formed_error
);
valid_length
=
cs
->
cset
->
well_formed_len
(
cs
,
statement
->
m_sqltext
,
statement
->
m_sqltext
+
valid_length
,
valid_length
,
&
well_formed_error
);
}
}
m_row
.
m_sqltext
.
set_charset
(
cs
);
...
...
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