Skip to content

Commit e672d3f

Browse files
committed
Merge branch 'merge/merge-perfschema-5.6' into 10.0
5.6.32
2 parents 57fbc60 + 0d8bb01 commit e672d3f

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

storage/perfschema/ha_perfschema.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ maria_declare_plugin(perfschema)
205205
0x0001,
206206
pfs_status_vars,
207207
NULL,
208-
"5.6.29",
208+
"5.6.32",
209209
MariaDB_PLUGIN_MATURITY_STABLE
210210
}
211211
maria_declare_plugin_end;

storage/perfschema/table_events_statements.cc

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
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
340340
CHARSET_INFO *cs= get_charset(statement->m_sqltext_cs_number, MYF(0));
341341
size_t valid_length= statement->m_sqltext_length;
342342

343-
if (cs->mbmaxlen > 1)
343+
if (cs != NULL)
344344
{
345-
int well_formed_error;
346-
valid_length= cs->cset->well_formed_len(cs, statement->m_sqltext, statement->m_sqltext + valid_length,
347-
valid_length, &well_formed_error);
345+
if (cs->mbmaxlen > 1)
346+
{
347+
int well_formed_error;
348+
valid_length= cs->cset->well_formed_len(cs,
349+
statement->m_sqltext,
350+
statement->m_sqltext + valid_length,
351+
valid_length,
352+
&well_formed_error);
353+
}
348354
}
349355

350356
m_row.m_sqltext.set_charset(cs);

0 commit comments

Comments
 (0)