diff options
author | unknown <andrey@lmy004.> | 2006-02-16 16:11:02 +0100 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2006-02-16 16:11:02 +0100 |
commit | f39aca3f8696e7e2fb9843f7bfa2bc112c350579 (patch) | |
tree | 800dd004b3ed5dee20d0c1e9d56b5c1ef50d391d /sql/event_timed.cc | |
parent | 5cdf49f0ce6a589d05874fcf4d8c614df866ff76 (diff) | |
download | mariadb-git-f39aca3f8696e7e2fb9843f7bfa2bc112c350579.tar.gz |
fix for bug#17543 Creating Event crash the server
this problem affects only debug builds
mysql-test/r/events.result:
update results
mysql-test/t/events.test:
tests for bug#17543 Creating Event crash the server
sql/event_timed.cc:
the delimiter between DO and the body could be not only a space
but any other recognized white space, so use proper macro.
Diffstat (limited to 'sql/event_timed.cc')
-rw-r--r-- | sql/event_timed.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/event_timed.cc b/sql/event_timed.cc index 6440e221732..47e82d555ab 100644 --- a/sql/event_timed.cc +++ b/sql/event_timed.cc @@ -117,7 +117,7 @@ event_timed::init_body(THD *thd) body.length--; //the first is always space which I cannot skip in the parser - DBUG_ASSERT(*body_begin == ' '); + DBUG_ASSERT(my_isspace(thd->variables.character_set_client, *body_begin)); body.length--; body.str= strmake_root(root, (char *)body_begin + 1, body.length); |