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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user