1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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.
This commit is contained in:
gbichot@quadita2.mysql.com
2005-05-06 18:52:19 +02:00
parent 5aa0edf34c
commit ea1bc59ed9
4 changed files with 96 additions and 9 deletions

View File

@@ -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;