diff options
author | kostja@bodhi.local <> | 2007-03-27 21:09:56 +0400 |
---|---|---|
committer | kostja@bodhi.local <> | 2007-03-27 21:09:56 +0400 |
commit | b42b41640067e07fe8d22e67897e4f1a000291c2 (patch) | |
tree | 6daa52a8ca86c0e36c1ccc12d201cfb452f71156 /sql/event_data_objects.cc | |
parent | e56c6d2f25592af24d1f222f822f5b9899221558 (diff) | |
download | mariadb-git-b42b41640067e07fe8d22e67897e4f1a000291c2.tar.gz |
Remove unnecessary casts to uchar. The casts are stemming from
the lexer API which internally uses unsigned char variables to
address its state map. The implementation of the lexer should be
internal to the lexer, and not influence the rest of the code.
Diffstat (limited to 'sql/event_data_objects.cc')
-rw-r--r-- | sql/event_data_objects.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc index c3ac488fb14..e87a78a5e37 100644 --- a/sql/event_data_objects.cc +++ b/sql/event_data_objects.cc @@ -168,7 +168,7 @@ Event_parse_data::init_body(THD *thd) (long) body_begin, (long) thd->lex->ptr)); body.length= thd->lex->ptr - body_begin; - const uchar *body_end= body_begin + body.length - 1; + const char *body_end= body_begin + body.length - 1; /* Trim nuls or close-comments ('*'+'/') or spaces at the end */ while (body_begin < body_end) @@ -1919,7 +1919,7 @@ Event_job_data::compile(THD *thd, MEM_ROOT *mem_root) event_change_security_context(thd, definer_user, definer_host, dbname, &save_ctx); thd->lex= &lex; - mysql_init_query(thd, (uchar*) thd->query, thd->query_length); + mysql_init_query(thd, thd->query, thd->query_length); if (MYSQLparse((void *)thd) || thd->is_fatal_error) { DBUG_PRINT("error", ("error during compile or thd->is_fatal_error: %d", |