diff options
author | Alexander Nozdrin <alik@ibmvm> | 2009-10-08 00:57:03 +0400 |
---|---|---|
committer | Alexander Nozdrin <alik@ibmvm> | 2009-10-08 00:57:03 +0400 |
commit | 63e5078825cc1e3eec4873f403d0672a22daedf7 (patch) | |
tree | 150b9143bf7fe39ca039ba903d524e469ec66ba9 /sql | |
parent | 5281fa364e10889d3f3421bd451eecc4825a09c2 (diff) | |
download | mariadb-git-63e5078825cc1e3eec4873f403d0672a22daedf7.tar.gz |
A backport of a patch for Bug#35297.
Original revision in mysql-6.0-codebase is:
revno: 2617.31.14
committer: Konstantin Osipov <kostja@sun.com>
branch nick: mysql-6.0-runtime
timestamp: Sat 2009-03-28 11:42:55 +0300
message:
Bug#35297 SHOW CREATE EVENT does not show the DEFINER:
update test result after a merge from now.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/event_data_objects.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc index dba32cac6b2..271ac73bd30 100644 --- a/sql/event_data_objects.cc +++ b/sql/event_data_objects.cc @@ -1225,7 +1225,9 @@ Event_timed::get_create_event(THD *thd, String *buf) expression)) DBUG_RETURN(EVEX_MICROSECOND_UNSUP); - buf->append(STRING_WITH_LEN("CREATE EVENT ")); + buf->append(STRING_WITH_LEN("CREATE ")); + append_definer(thd, buf, &definer_user, &definer_host); + buf->append(STRING_WITH_LEN("EVENT ")); append_identifier(thd, buf, name.str, name.length); if (expression) |