summaryrefslogtreecommitdiff
path: root/sql/event_scheduler.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_scheduler.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_scheduler.cc')
-rw-r--r--sql/event_scheduler.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/event_scheduler.cc b/sql/event_scheduler.cc
index d0a2405526a..f459fd34aee 100644
--- a/sql/event_scheduler.cc
+++ b/sql/event_scheduler.cc
@@ -49,11 +49,11 @@ Event_db_repository *Event_worker_thread::db_repository;
static
-const LEX_STRING scheduler_states_names[] =
+const LEX_CSTRING scheduler_states_names[] =
{
- { C_STRING_WITH_LEN("INITIALIZED") },
- { C_STRING_WITH_LEN("RUNNING") },
- { C_STRING_WITH_LEN("STOPPING") }
+ { STRING_WITH_LEN("INITIALIZED") },
+ { STRING_WITH_LEN("RUNNING") },
+ { STRING_WITH_LEN("STOPPING") }
};
struct scheduler_param {