1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/sql
Luis Soares 84ae9ecab0 BUG#13684: SP: DROP PROCEDURE|FUNCTION IF EXISTS not binlogged if
routine does not exist 
      
There is an inconsistency with DROP DATABASE IF EXISTS, DROP TABLE IF
EXISTS and DROP VIEW IF EXISTS: those are binlogged even if the DB or
TABLE does not exist, whereas DROP PROCEDURE IF EXISTS does not. It
would be nice or at least consistent if DROP PROCEDURE/STATEMENT
worked the same too.
      
Fixed DROP PROCEDURE|FUNCTION IF EXISTS by adding a call to
mysql_bin_log.write in mysql_execute_command. Checked also if all 
documented "DROP (...) IF EXISTS" get binlogged.
      
NOTE: This is a 5.0 backport patch as requested by support.

mysql-test/r/rpl_drop_if_exists.result:
  Result file for test case added.
mysql-test/r/rpl_sp.result:
  Updated result file for existing test case that has now extra events in
  binary log (the ones from drop if exists procedure/function).
mysql-test/t/rpl_drop_if_exists.test:
  Added test case for asserting validity of proposed patch.
sql/sql_parse.cc:
  Added call mysql_bin_log.write when lex has drop_if_exists enabled for 
  stored procedures.
2009-04-09 11:40:22 +01:00
..
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-12 00:55:40 +05:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2009-03-19 09:44:58 -04:00
2007-11-05 20:18:22 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2008-12-12 14:59:10 +04:00
2008-04-10 15:55:37 -04:00
2009-01-16 16:48:41 +02:00
2006-12-23 20:17:15 +01:00
2009-03-19 09:44:58 -04:00
2009-02-06 18:25:08 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2009-04-01 16:02:26 +05:00
2009-04-01 16:02:26 +05:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2009-04-08 16:17:26 +08:00
2006-12-23 20:17:15 +01:00
2009-03-19 09:44:58 -04:00
2009-03-19 09:44:58 -04:00
2006-12-31 01:02:27 +01:00
2009-03-19 09:44:58 -04:00
2008-03-18 16:38:12 +04:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2009-04-08 16:17:26 +08:00
2008-01-23 13:26:41 -07:00
2006-12-23 20:17:15 +01:00
2009-04-08 16:17:26 +08:00
2006-12-23 20:17:15 +01:00
2009-03-19 09:44:58 -04:00
2009-03-25 21:50:42 +04:00
2009-03-25 21:50:42 +04:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2009-03-19 09:44:58 -04:00
2009-04-08 16:17:26 +08:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2009-03-19 09:44:58 -04:00
2007-07-01 15:33:28 -07:00
2006-12-23 20:17:15 +01:00
2009-03-19 09:44:58 -04:00
2006-12-31 01:02:27 +01:00
2008-09-16 13:16:41 +02:00
2007-03-22 20:32:07 +02:00
2009-03-19 09:44:58 -04:00
2006-12-23 20:17:15 +01:00