diff options
author | unknown <Li-Bing.Song@sun.com> | 2010-01-30 20:49:25 +0800 |
---|---|---|
committer | unknown <Li-Bing.Song@sun.com> | 2010-01-30 20:49:25 +0800 |
commit | d9e9a73e8f1355a24b27d64d56d555d045ee0b4c (patch) | |
tree | fe4d6d50364d61bae44bb06b36e269c34dc713ab /client | |
parent | f51a45cdbb3c93dfd3b08fea0a6253c78f26cfae (diff) | |
download | mariadb-git-d9e9a73e8f1355a24b27d64d56d555d045ee0b4c.tar.gz |
Bug #48321 CURRENT_USER() incorrectly replicated for DROP/RENAME USER;
REVOKE/GRANT; ALTER EVENT.
The following statements support the CURRENT_USER() where a user is needed.
DROP USER
RENAME USER CURRENT_USER() ...
GRANT ... TO CURRENT_USER()
REVOKE ... FROM CURRENT_USER()
ALTER DEFINER = CURRENT_USER() EVENT
but, When these statements are binlogged, CURRENT_USER() just is binlogged
as 'CURRENT_USER()', it is not expanded to the real user name. When slave
executes the log event, 'CURRENT_USER()' is expand to the user of slave
SQL thread, but SQL thread's user name always NULL. This breaks the replication.
After this patch, All above statements are rewritten when they are binlogged.
The CURRENT_USER() is expanded to the real user's name and host.
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions