788c28aceb
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.
2010-01-30 20:49:25 +08:00
..
2009-06-17 15:54:01 +02:00
2010-01-21 09:10:05 +01:00
2009-08-13 17:07:20 -03:00
2009-09-29 17:38:40 +02:00
2009-10-04 12:53:02 +03:00
2009-09-29 17:38:40 +02:00
2010-01-19 13:03:40 +04:00
2008-05-09 09:43:02 +02:00
2010-01-22 17:38:21 +08:00
2009-02-13 11:41:47 -05:00
2008-11-10 21:21:49 +01:00
2008-05-09 09:43:02 +02:00
2009-07-24 15:45:42 -03:00
2010-01-30 20:49:25 +08:00
2009-06-17 15:54:01 +02:00
2009-12-18 14:00:30 +02:00
2010-01-21 17:20:24 +00:00
2010-01-29 15:08:49 +04:00
2009-02-13 11:41:47 -05:00
2009-06-09 18:11:21 +02:00
2009-10-16 13:29:42 +03:00
2008-03-29 09:52:16 +02:00
2008-03-10 07:07:56 +01:00
2009-10-16 13:29:42 +03:00
2008-02-04 15:40:04 +01:00
2010-01-19 17:02:51 +01:00
2009-11-17 20:02:16 +01:00
2009-12-01 11:19:51 +02:00
2009-10-12 14:46:00 +02:00
2008-04-03 13:14:57 -04:00
2010-01-13 12:28:42 +02:00
2010-01-13 12:28:42 +02:00
2010-01-13 10:00:03 +01:00
2009-12-22 14:38:33 +04:00
2009-12-22 17:52:15 +02:00
2009-11-24 18:26:13 +03:00
2008-02-22 13:30:33 +03:00
2008-02-22 13:30:33 +03:00
2008-02-22 13:30:33 +03:00
2010-01-28 19:51:40 -02:00
2010-01-28 19:51:40 -02:00
2009-11-06 22:42:24 +03:00
2009-11-17 17:06:46 +03:00
2009-11-24 18:30:21 +03:00
2009-11-17 17:06:46 +03:00
2009-12-03 13:22:34 +04:00
2009-12-13 23:29:50 +03:00
2009-11-06 22:34:25 +03:00
2007-11-21 16:00:09 +04:00
2010-01-15 16:09:20 +02:00
2010-01-12 15:16:26 +01:00
2008-10-10 12:01:01 +02:00
2009-07-29 10:54:20 +02:00
2009-08-28 18:21:54 +02:00
2010-01-24 15:03:23 +08:00
2007-12-05 20:00:14 +01:00
2010-01-28 19:51:40 -02:00
2010-01-27 19:27:49 +02:00
2010-01-24 15:03:23 +08:00
2009-12-04 14:40:42 +00:00
2009-09-29 17:38:40 +02:00
2008-10-23 15:28:53 +02:00
2008-10-23 15:28:53 +02:00
2008-10-23 15:28:53 +02:00
2008-10-23 15:28:53 +02:00
2008-11-27 12:33:04 +01:00
2009-11-02 09:21:39 -02:00
2010-01-27 13:23:28 +01:00
2009-10-06 13:04:51 +02:00
2007-10-16 16:11:50 -04:00
2010-01-27 13:23:28 +01:00
2009-07-28 22:44:28 +04:00
2008-11-22 01:10:38 +01:00
2008-11-22 01:10:38 +01:00
2009-11-25 11:02:25 +01:00
2008-08-25 21:18:22 +04:00
2009-10-14 10:46:50 +02:00
2009-06-19 13:24:43 +05:00
2009-04-13 18:09:10 +05:00
2009-09-23 15:21:29 +02:00
2009-09-02 18:42:08 +03:00
2009-06-01 16:00:38 +04:00
2008-03-21 17:48:28 +02:00
2009-07-29 22:07:08 +02:00
2009-07-29 22:07:08 +02:00
2009-11-03 20:45:52 +03:00
2010-01-22 14:58:21 +04:00
2008-12-29 17:04:10 +01:00
2009-09-10 11:40:57 +04:00
2010-01-28 19:51:40 -02:00
2007-12-14 15:21:37 +02:00
2010-01-28 19:51:40 -02:00
2009-10-22 01:15:45 +01:00
2009-06-16 16:04:30 +01:00
2009-06-16 16:04:30 +01:00
2009-12-14 18:50:22 +02:00
2009-12-14 18:32:22 +02:00
2009-11-20 16:18:01 +01:00
2008-08-20 19:06:31 +05:00
2008-06-30 22:11:18 +02:00
2010-01-05 14:25:29 +08:00
2007-11-14 16:12:46 -05:00
2010-01-21 09:10:05 +01:00
2009-09-29 17:38:40 +02:00
2009-12-14 18:32:22 +02:00
2009-11-12 17:10:19 +02:00
2009-11-20 16:18:01 +01:00
2008-07-03 23:41:22 +04:00
2010-01-24 15:03:23 +08:00
2009-11-20 16:18:01 +01:00
2009-04-29 07:59:10 +05:00
2009-12-18 16:44:24 -02:00
2009-11-06 22:34:25 +03:00
2008-01-23 13:26:41 -07:00
2010-01-25 10:55:05 +08:00
2009-11-20 16:18:01 +01:00
2009-08-28 18:21:54 +02:00
2009-06-17 16:56:44 +02:00
2010-01-30 20:49:25 +08:00
2009-11-21 09:18:21 -02:00
2009-06-17 16:56:44 +02:00
2008-03-21 17:48:28 +02:00
2007-10-18 14:32:43 +04:00
2010-01-24 15:03:23 +08:00
2009-10-14 09:39:05 +08:00
2008-01-29 14:14:34 +03:00
2009-11-20 13:49:06 +01:00
2009-11-20 13:49:06 +01:00
2009-12-01 14:38:40 +04:00
2010-01-24 15:03:23 +08:00
2009-12-18 16:44:24 -02:00
2009-12-04 13:36:58 -02:00
2009-12-04 13:36:58 -02:00
2008-12-10 18:16:21 +04:00
2007-10-16 16:11:50 -04:00
2010-01-28 19:51:40 -02:00
2010-01-24 15:03:23 +08:00
2009-05-27 18:19:44 +03:00
2008-02-19 15:45:21 +03:00
2009-02-13 11:41:47 -05:00
2009-09-17 17:25:52 +02:00
2009-06-17 16:56:44 +02:00
2010-01-24 15:03:23 +08:00
2009-09-17 17:10:30 +02:00
2010-01-30 20:49:25 +08:00
2009-06-10 10:59:49 +02:00
2010-01-24 15:03:23 +08:00
2009-10-19 13:41:52 +05:00
2008-12-04 19:41:53 +01:00
2007-10-23 14:27:11 +05:00
2010-01-29 11:36:28 +02:00
2010-01-24 15:03:23 +08:00
2009-12-13 23:29:50 +03:00
2009-12-18 17:14:09 -02:00
2009-05-14 14:03:33 +02:00
2010-01-16 15:44:24 +08:00
2009-07-16 15:37:38 +03:00
2009-06-10 10:59:49 +02:00
2010-01-24 15:03:23 +08:00
2010-01-24 15:03:23 +08:00
2008-03-14 18:38:54 +01:00
2010-01-29 15:08:49 +04:00
2010-01-15 16:09:20 +02:00
2010-01-13 12:39:00 +01:00
2010-01-22 14:58:21 +04:00
2008-11-10 21:21:49 +01:00
2009-07-31 22:14:52 +05:00
2009-07-31 22:14:52 +05:00
2010-01-28 19:51:40 -02:00
2010-01-24 15:03:23 +08:00
2010-01-28 12:10:57 +01:00
2010-01-24 15:03:23 +08:00
2009-01-14 18:50:51 +04:00
2010-01-25 10:55:05 +08:00
2009-12-22 17:52:15 +02:00
2010-01-24 15:03:23 +08:00
2010-01-24 15:03:23 +08:00
2009-04-13 18:09:10 +05:00
2010-01-30 20:49:25 +08:00
2009-09-23 15:21:29 +02:00
2009-11-03 20:45:52 +03:00
2010-01-19 13:03:40 +04:00
2009-11-21 09:18:21 -02:00
2009-06-29 16:00:47 +02:00
2009-11-02 13:24:07 +01:00
2009-06-17 16:56:44 +02:00
2009-01-12 17:40:29 +01:00
2009-09-17 17:25:52 +02:00
2007-10-17 17:54:11 -04:00
2009-06-17 16:56:44 +02:00
2009-09-02 16:19:28 +05:00
2009-07-31 15:28:15 -04:00