2049d1afc0
Bug #50407 mysqlbinlog --database=X produces bad output for SAVEPOINTs
...
When mysqlbinlog was given the --database=X flag, it always printed
'ROLLBACK TO', but the corresponding 'SAVEPOINT' statement was not
printed. The replicated filter(replicated-do/ignore-db) and binlog
filter (binlog-do/ignore-db) has the same problem. They are solved
in this patch together.
After this patch, We always check whether the query is 'SAVEPOINT'
statement or not. Because this is a literal check, 'SAVEPOINT' and
'ROLLBACK TO' statements are also binlogged in uppercase with no
any comments.
The binlog before this patch can be handled correctly except one case
that any comments are in front of the keywords. for example:
/* bla bla */ SAVEPOINT a;
/* bla bla */ ROLLBACK TO a;
2010-03-28 19:57:33 +08:00
..
2010-02-27 17:08:53 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-12-12 18:19:24 +01:00
2007-06-27 14:28:02 +02:00
2007-12-12 18:19:24 +01:00
2008-04-25 14:07:17 +02:00
2008-01-14 15:38:02 +08:00
2008-11-13 20:19:00 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-10-01 07:19:36 +08:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2010-03-28 19:57:33 +08:00
2009-05-31 13:44:41 +08:00
2010-03-28 19:57:33 +08:00
2008-12-29 17:04:10 +01:00
2009-04-15 12:43:17 +01:00
2010-02-02 16:38:44 +03:00
2009-06-18 14:52:46 +01:00
2009-06-18 14:52:46 +01:00
2008-09-03 13:01:18 +03:00
2008-10-07 10:25:12 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-01-30 15:44:49 +02:00
2008-07-10 18:09:39 +02:00
2007-12-14 19:02:02 +01:00
2009-08-28 16:13:27 +02:00
2009-04-30 16:20:38 +03:00
2009-04-30 16:20:38 +03:00
2008-02-28 14:36:14 +03:00
2007-06-27 14:28:02 +02:00
2008-02-13 11:37:06 +01:00
2008-04-25 20:54:42 +04:00
2009-12-16 12:41:15 +08:00
2008-01-14 15:38:02 +08:00
2007-06-27 14:29:10 +02:00
2009-07-06 09:02:14 +01:00
2009-08-13 17:21:01 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-01-14 15:38:02 +08:00
2010-01-16 15:44:24 +08:00
2009-08-13 10:48:57 +08:00
2007-12-06 18:27:10 +03:00
2009-01-27 13:33:30 +02:00
2009-02-16 14:51:39 +02:00
2007-06-27 14:28:02 +02:00
2008-10-29 14:25:03 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2009-12-06 23:12:11 +00:00
2008-11-13 20:19:00 +01:00
2009-02-11 18:46:43 +01:00
2007-06-27 14:28:02 +02:00
2009-12-31 12:04:19 +08:00
2008-11-13 20:19:00 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-01-09 15:12:31 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2009-11-18 15:50:31 +01:00
2010-03-28 16:37:47 +08:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-10-10 16:43:20 +02:00
2007-10-10 16:43:20 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-08-26 18:01:49 +08:00
2009-01-09 15:12:31 +01:00
2007-12-12 18:19:24 +01:00
2007-06-27 14:28:02 +02:00
2007-12-12 18:19:24 +01:00
2007-06-27 14:28:02 +02:00
2008-07-10 18:09:39 +02:00
2007-06-27 14:28:02 +02:00
2008-05-16 19:03:50 +03:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2010-01-05 14:25:29 +08:00
2009-11-18 15:50:31 +01:00
2009-10-29 10:26:59 +08:00
2010-03-19 11:06:40 +02:00
2008-01-14 15:38:02 +08:00
2008-10-29 14:25:03 +01:00
2009-08-25 15:56:50 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-11-13 20:19:00 +01:00
2007-06-27 14:28:02 +02:00
2009-05-02 23:28:54 +04:00
2009-08-28 16:13:27 +02:00
2007-06-27 14:28:02 +02:00
2009-07-06 18:20:17 -04:00
2008-10-29 14:25:03 +01:00
2008-10-29 14:25:03 +01:00
2008-05-07 12:57:07 +02:00
2007-09-12 18:16:50 -07:00
2007-06-29 21:09:00 +04:00
2007-06-29 21:09:00 +04:00
2008-10-29 14:25:03 +01:00
2008-10-29 14:25:03 +01:00
2007-06-27 14:28:02 +02:00
2008-05-16 19:03:50 +03:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2008-07-07 17:38:47 +02:00
2008-02-29 00:50:15 +03:00
2009-04-09 07:42:51 +08:00
2009-12-21 14:14:45 +08:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-12-12 18:19:24 +01:00
2007-06-27 14:28:02 +02:00
2008-02-28 12:21:44 +01:00
2007-12-12 18:19:24 +01:00
2009-08-12 13:31:56 +08:00
2009-12-16 12:25:46 +08:00
2007-06-27 16:49:32 +02:00
2007-12-12 18:19:24 +01:00
2007-06-27 14:28:02 +02:00
2007-12-12 18:19:24 +01:00
2008-02-04 06:49:15 +01:00
2008-01-31 15:53:47 +01:00
2008-07-18 13:34:19 +02:00
2007-06-27 14:28:02 +02:00
2007-12-12 18:19:24 +01:00
2007-12-12 18:19:24 +01:00
2009-11-28 12:43:16 +08:00
2009-11-28 12:43:16 +08:00
2009-11-28 12:43:16 +08:00
2009-11-28 12:43:16 +08:00
2010-02-05 14:49:01 +08:00
2007-06-27 14:28:02 +02:00
2009-09-28 05:41:10 -07:00
2009-03-27 12:59:31 +02:00
2007-06-27 14:28:02 +02:00
2009-09-24 16:19:06 +03:00
2010-01-08 23:32:40 +08:00
2007-06-27 14:28:02 +02:00
2008-03-12 13:07:35 +01:00
2007-06-27 14:28:02 +02:00
2010-01-13 10:00:03 +01:00
2009-03-05 20:54:53 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-11-24 14:57:23 +08:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-09-28 14:24:19 +08:00
2009-04-09 07:42:51 +08:00
2010-01-13 10:00:03 +01:00
2009-10-22 01:15:45 +01:00
2009-10-22 01:15:45 +01:00
2010-01-13 10:00:03 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-09-24 16:19:06 +03:00
2008-08-19 17:35:56 +02:00
2008-08-19 17:35:56 +02:00
2008-08-19 17:35:56 +02:00
2008-10-07 14:22:28 +02:00
2008-07-16 11:17:10 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-10-29 14:25:03 +01:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2008-02-28 14:36:14 +03:00
2007-06-27 14:28:02 +02:00
2007-12-12 18:19:24 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-03-05 12:25:55 +02:00
2008-03-07 14:39:37 +02:00
2009-08-28 10:45:57 +01:00
2009-08-28 10:45:57 +01:00
2007-12-12 18:19:24 +01:00
2007-06-27 14:28:02 +02:00
2008-04-25 14:07:17 +02:00
2009-03-12 17:48:41 +08:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2008-10-29 14:25:03 +01:00
2007-12-12 12:14:59 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:29:10 +02:00
2007-08-10 12:48:01 -04:00
2009-01-09 15:12:31 +01:00
2010-02-26 14:18:13 +02:00
2007-06-27 14:28:02 +02:00
2009-09-27 22:02:47 +01:00
2007-06-27 14:28:02 +02:00
2008-08-13 23:12:51 +04:00
2008-08-13 23:12:51 +04:00
2008-03-28 13:16:41 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2008-07-10 18:09:39 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2008-11-13 20:19:00 +01:00
2007-06-27 14:28:02 +02:00
2009-04-24 02:02:07 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-12-06 18:27:10 +03:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2008-02-28 12:21:44 +01:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-07-10 18:09:39 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2010-01-14 10:49:40 +00:00
2008-02-04 12:12:03 +01:00
2007-06-27 14:28:02 +02:00
2007-12-06 18:27:10 +03:00
2007-06-27 14:28:02 +02:00
2009-11-22 13:10:33 +08:00
2007-08-29 14:54:32 +03:00
2009-02-19 23:29:12 +03:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:29:10 +02:00
2008-02-28 14:36:14 +03:00
2009-03-25 12:53:56 +02:00
2008-08-04 07:04:47 +02:00
2007-06-27 14:28:02 +02:00
2008-12-19 22:13:12 +02:00
2007-12-24 15:03:23 +08:00
2007-11-20 19:55:51 +03:00
2007-06-27 14:28:02 +02:00
2010-01-21 17:20:24 +00:00
2010-01-21 17:20:24 +00:00
2009-07-28 18:44:38 +01:00
2010-03-22 07:50:19 +02:00
2007-10-22 21:45:21 +03:00
2009-04-08 22:02:19 +01:00
2008-07-10 18:09:39 +02:00
2009-03-18 10:31:17 +00:00
2009-03-18 10:31:17 +00:00
2009-09-01 13:38:17 +02:00
2009-03-18 10:31:17 +00:00
2009-04-19 02:21:33 +01:00
2010-03-01 14:33:15 +02:00
2008-07-10 18:09:39 +02:00
2010-02-05 17:01:09 +00:00
2010-02-05 17:48:01 +00:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-07-10 18:09:39 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-07-02 15:40:27 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-12-06 18:27:10 +03:00
2007-12-05 12:33:36 -07:00
2009-03-26 10:25:06 +02:00
2009-04-09 16:05:41 +03:00
2007-06-27 14:28:02 +02:00
2008-03-30 00:54:08 +02:00
2010-01-20 19:08:16 +00:00
2010-01-20 19:08:16 +00:00
2009-01-09 15:12:31 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-03-24 18:27:33 +00:00
2007-06-27 14:28:02 +02:00
2008-09-01 11:00:52 +02:00
2007-06-27 14:29:10 +02:00
2007-06-27 14:28:02 +02:00
2009-08-27 00:13:03 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2010-03-04 10:18:06 +00:00
2010-01-27 19:27:49 +02:00
2008-07-03 10:27:25 +02:00
2009-07-26 22:48:24 +01:00
2007-06-27 14:28:02 +02:00
2007-10-20 20:16:12 +02:00
2008-10-13 20:33:08 +02:00
2009-12-17 16:50:45 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2009-12-16 20:53:56 +01:00
2010-01-22 17:38:21 +08:00
2010-01-13 10:00:03 +01:00
2008-07-23 12:13:55 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2010-03-17 15:28:49 +01:00
2010-03-17 15:28:49 +01:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2007-06-27 14:28:02 +02:00
2008-03-25 17:28:12 +04:00
2010-02-02 16:38:44 +03:00
2008-03-11 18:43:29 +01:00
2008-07-17 18:26:59 +02:00
2008-05-08 13:45:40 +02:00