summaryrefslogtreecommitdiff
path: root/sql/event_data_objects.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-01-08 15:33:23 +0200
committerMonty <monty@mariadb.org>2018-01-30 21:33:56 +0200
commitf55dc7f733446a201e3b465ae03a0388d192a3ad (patch)
tree54bb6977650a907dcd069ef1b7124e61944ceabe /sql/event_data_objects.cc
parent18e22cb69f7d56207c80a5bf4336f2a52ff0d70f (diff)
downloadmariadb-git-f55dc7f733446a201e3b465ae03a0388d192a3ad.tar.gz
Change C_STRING_WITH_LEN to STRING_WITH_LEN
This preserves const str for constant strings Other things - A few variables where changed from LEX_STRING to LEX_CSTRING - Incident_log_event::Incident_log_event and record_incident where changed to take LEX_CSTRING* as an argument instead of LEX_STRING
Diffstat (limited to 'sql/event_data_objects.cc')
-rw-r--r--sql/event_data_objects.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc
index 3b89a94adc3..66c07574cab 100644
--- a/sql/event_data_objects.cc
+++ b/sql/event_data_objects.cc
@@ -1266,8 +1266,8 @@ Event_job_data::construct_sp_sql(THD *thd, String *sp_sql)
sp_sql->length(0);
- sp_sql->append(C_STRING_WITH_LEN("CREATE "));
- sp_sql->append(C_STRING_WITH_LEN("PROCEDURE "));
+ sp_sql->append(STRING_WITH_LEN("CREATE "));
+ sp_sql->append(STRING_WITH_LEN("PROCEDURE "));
/*
Let's use the same name as the event name to perhaps produce a
better error message in case it is a part of some parse error.
@@ -1282,7 +1282,7 @@ Event_job_data::construct_sp_sql(THD *thd, String *sp_sql)
let's execute the procedure with the invoker rights to save on
resets of security contexts.
*/
- sp_sql->append(C_STRING_WITH_LEN("() SQL SECURITY INVOKER "));
+ sp_sql->append(STRING_WITH_LEN("() SQL SECURITY INVOKER "));
sp_sql->append(&body);
@@ -1310,7 +1310,7 @@ Event_job_data::construct_drop_event_sql(THD *thd, String *sp_sql)
sp_sql->set(buffer.str, buffer.length, system_charset_info);
sp_sql->length(0);
- sp_sql->append(C_STRING_WITH_LEN("DROP EVENT "));
+ sp_sql->append(STRING_WITH_LEN("DROP EVENT "));
append_identifier(thd, sp_sql, &dbname);
sp_sql->append('.');
append_identifier(thd, sp_sql, &name);