summaryrefslogtreecommitdiff
path: root/sql/event_db_repository.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/event_db_repository.cc')
-rw-r--r--sql/event_db_repository.cc20
1 files changed, 8 insertions, 12 deletions
diff --git a/sql/event_db_repository.cc b/sql/event_db_repository.cc
index 8366f24b5f8..18cba99f92b 100644
--- a/sql/event_db_repository.cc
+++ b/sql/event_db_repository.cc
@@ -341,31 +341,27 @@ mysql_event_fill_row(THD *thd,
}
fields[ET_FIELD_CHARACTER_SET_CLIENT]->set_notnull();
- rs|= fields[ET_FIELD_CHARACTER_SET_CLIENT]->store(
- thd->variables.character_set_client->csname,
- strlen(thd->variables.character_set_client->csname),
- system_charset_info);
+ rs|= fields[ET_FIELD_CHARACTER_SET_CLIENT]->
+ store(&thd->variables.character_set_client->cs_name,
+ system_charset_info);
fields[ET_FIELD_COLLATION_CONNECTION]->set_notnull();
- rs|= fields[ET_FIELD_COLLATION_CONNECTION]->store(
- thd->variables.collation_connection->name,
- strlen(thd->variables.collation_connection->name),
- system_charset_info);
+ rs|= fields[ET_FIELD_COLLATION_CONNECTION]->
+ store(&thd->variables.collation_connection->coll_name,
+ system_charset_info);
{
CHARSET_INFO *db_cl= get_default_db_collation(thd, et->dbname.str);
fields[ET_FIELD_DB_COLLATION]->set_notnull();
- rs|= fields[ET_FIELD_DB_COLLATION]->store(db_cl->name,
- strlen(db_cl->name),
+ rs|= fields[ET_FIELD_DB_COLLATION]->store(&db_cl->coll_name,
system_charset_info);
}
if (et->body_changed)
{
fields[ET_FIELD_BODY_UTF8]->set_notnull();
- rs|= fields[ET_FIELD_BODY_UTF8]->store(sp->m_body_utf8.str,
- sp->m_body_utf8.length,
+ rs|= fields[ET_FIELD_BODY_UTF8]->store(&sp->m_body_utf8,
system_charset_info);
}