summaryrefslogtreecommitdiff
path: root/storage/perfschema/table_status_by_user.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/perfschema/table_status_by_user.cc')
-rw-r--r--storage/perfschema/table_status_by_user.cc19
1 files changed, 13 insertions, 6 deletions
diff --git a/storage/perfschema/table_status_by_user.cc b/storage/perfschema/table_status_by_user.cc
index 462534dafd9..25f87a87faf 100644
--- a/storage/perfschema/table_status_by_user.cc
+++ b/storage/perfschema/table_status_by_user.cc
@@ -1,13 +1,20 @@
-/* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2015, 2016, 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
- the Free Software Foundation; version 2 of the License.
+ it under the terms of the GNU General Public License, version 2.0,
+ as published by the Free Software Foundation.
+
+ This program is also distributed with certain software (including
+ but not limited to OpenSSL) that is licensed under separate terms,
+ as designated in a particular file or component or in included license
+ documentation. The authors of MySQL hereby grant you an additional
+ permission to link the program and your derivative works with the
+ separately licensed software that they have included with MySQL.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ GNU General Public License, version 2.0, for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
@@ -211,7 +218,7 @@ void table_status_by_user
return;
m_row.m_variable_name.make_row(status_var->m_name, status_var->m_name_length);
- m_row.m_variable_value.make_row(status_var->m_value_str, status_var->m_value_length);
+ m_row.m_variable_value.make_row(status_var);
if (!user->m_lock.end_optimistic_lock(&lock))
return;
@@ -247,7 +254,7 @@ int table_status_by_user
set_field_varchar_utf8(f, m_row.m_variable_name.m_str, m_row.m_variable_name.m_length);
break;
case 2: /* VARIABLE_VALUE */
- set_field_varchar_utf8(f, m_row.m_variable_value.m_str, m_row.m_variable_value.m_length);
+ m_row.m_variable_value.set_field(f);
break;
default:
DBUG_ASSERT(false);