diff options
author | unknown <bar@mysql.com> | 2007-02-26 15:25:43 +0400 |
---|---|---|
committer | unknown <bar@mysql.com> | 2007-02-26 15:25:43 +0400 |
commit | f534fc5e2a89246ddb4ea7d85055f941f211034c (patch) | |
tree | 840e2c8cd1e24a28481b85b03abdb959e836d7ed /sql/sql_trigger.h | |
parent | 6dab9de8ec1eb7a64bd453053a172db74f62cfa5 (diff) | |
download | mariadb-git-f534fc5e2a89246ddb4ea7d85055f941f211034c.tar.gz |
Bug#24478 DROP TRIGGER is not caught by replicate-*-table filters
Problem: DROP TRIGGER was not properly handled in combination
with slave filters, which made replication stop
Fix: loading table name before checking slave filters when
dropping a trigger.
mysql-test/r/rpl_replicate_do.result:
Adding test case
mysql-test/t/rpl_replicate_do.test:
Adding test case
sql/sql_parse.cc:
Loading table name when dropping a trigger
before checking slave filtering rules.
sql/sql_trigger.cc:
Making add_table_for_trigger() public
sql/sql_trigger.h:
Making add_table_for_trigger() public
Diffstat (limited to 'sql/sql_trigger.h')
-rw-r--r-- | sql/sql_trigger.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_trigger.h b/sql/sql_trigger.h index 7e0fadfa677..8970986b931 100644 --- a/sql/sql_trigger.h +++ b/sql/sql_trigger.h @@ -139,3 +139,7 @@ private: extern const LEX_STRING trg_action_time_type_names[]; extern const LEX_STRING trg_event_type_names[]; + +int +add_table_for_trigger(THD *thd, sp_name *trig, bool if_exists, + TABLE_LIST **table); |