diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-01-10 21:20:51 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-01-11 21:54:48 +0100 |
commit | a216672dab202207a21f9d2ffdc4b00eb958060f (patch) | |
tree | 2827dba0fb91b01ca3e6e9619576ff84696faba8 /storage/perfschema/table_esgs_by_account_by_event_name.cc | |
parent | ad9a140d9b210758b354a997572ff86e884954fc (diff) | |
download | mariadb-git-a216672dab202207a21f9d2ffdc4b00eb958060f.tar.gz |
MDEV-16341 Wrong length for USER columns in performance_schema tables
use USERNAME_CHAR_LENGTH and HOSTNAME_LENGTH for perfschema
USER and HOST columns
Diffstat (limited to 'storage/perfschema/table_esgs_by_account_by_event_name.cc')
-rw-r--r-- | storage/perfschema/table_esgs_by_account_by_event_name.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/perfschema/table_esgs_by_account_by_event_name.cc b/storage/perfschema/table_esgs_by_account_by_event_name.cc index 22e4e0040f1..9a983eb076e 100644 --- a/storage/perfschema/table_esgs_by_account_by_event_name.cc +++ b/storage/perfschema/table_esgs_by_account_by_event_name.cc @@ -49,8 +49,8 @@ table_esgs_by_account_by_event_name::m_share= sizeof(pos_esgs_by_account_by_event_name), &m_table_lock, { C_STRING_WITH_LEN("CREATE TABLE events_stages_summary_by_account_by_event_name(" - "USER CHAR(16) collate utf8_bin default null," - "HOST CHAR(60) collate utf8_bin default null," + "USER CHAR(" STRINGIFY_ARG(USERNAME_CHAR_LENGTH) ") collate utf8_bin default null," + "HOST CHAR(" STRINGIFY_ARG(HOSTNAME_LENGTH) ") collate utf8_bin default null," "EVENT_NAME VARCHAR(128) not null," "COUNT_STAR BIGINT unsigned not null," "SUM_TIMER_WAIT BIGINT unsigned not null," |