diff options
author | gbichot@quadita2.mysql.com <> | 2005-05-06 18:52:19 +0200 |
---|---|---|
committer | gbichot@quadita2.mysql.com <> | 2005-05-06 18:52:19 +0200 |
commit | ea1bc59ed9e07cfd6047f0052f750b0f836f4e9b (patch) | |
tree | 4f486a352732a6b1f04e190b6cf3f4d62fc3a5df /sql/sql_trigger.h | |
parent | 5aa0edf34c4bf83eace609e2e60b448fcb9553fe (diff) | |
download | mariadb-git-ea1bc59ed9e07cfd6047f0052f750b0f836f4e9b.tar.gz |
Dmitri please review. Fix for BUG#10417 "CREATE TRIGGER not written to binlog":
writing DROP and CREATE TRIGGER to binlog, disabling binlogging
of substatements, testing.
Diffstat (limited to 'sql/sql_trigger.h')
-rw-r--r-- | sql/sql_trigger.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_trigger.h b/sql/sql_trigger.h index 7dd6734eb89..26cfb114cde 100644 --- a/sql/sql_trigger.h +++ b/sql/sql_trigger.h @@ -52,7 +52,15 @@ public: FIXME: We should juggle with security context here (because trigger should be invoked with creator rights). */ + /* + Guilhem puts code to disable binlogging, as in SP/functions, even + though currently triggers can't do updates. When triggers can do + updates, someone should add such a trigger to rpl_sp.test to verify + that the update does NOT go into binlog. + */ + tmp_disable_binlog(thd); res= bodies[event][time_type]->execute_function(thd, 0, 0, 0); + reenable_binlog(thd); #ifndef EMBEDDED_LIBRARY thd->net.no_send_ok= nsok; |