summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gleb.loc>2007-06-25 03:40:30 +0500
committerunknown <gshchepa/uchum@gleb.loc>2007-06-25 03:40:30 +0500
commit362852ba801eb4fe9fd0c46941f1561a391088c0 (patch)
treecc7610ed3772133691960cf0b1ee425bdaac69f8 /sql/sql_trigger.cc
parent81d32154d2814b38b68a9a8c8d4c3e27e337ad07 (diff)
parent1ba9b0a9f192ff2e0b04781d6019aa181d4a10e9 (diff)
downloadmariadb-git-362852ba801eb4fe9fd0c46941f1561a391088c0.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.1
into gleb.loc:/home/uchum/work/bk/5.1-opt sql/item.h: Auto merged sql/log_event.cc: Auto merged sql/sp.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_delete.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_trigger.cc: Auto merged sql/sql_view.cc: Auto merged mysql-test/r/rpl_change_master.result: Merge with 5.1. mysql-test/t/rpl_change_master.test: Merge with 5.1. sql/sql_acl.cc: Merge with 5.1.
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r--sql/sql_trigger.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index 7433a3f45cd..7c28dff850a 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -307,14 +307,7 @@ end:
if (!result)
{
- if (mysql_bin_log.is_open())
- {
- thd->clear_error();
-
- /* Such a statement can always go directly to binlog, no trans cache. */
- thd->binlog_query(THD::STMT_QUERY_TYPE,
- stmt_query.ptr(), stmt_query.length(), FALSE, FALSE);
- }
+ write_bin_log(thd, TRUE, stmt_query.ptr(), stmt_query.length());
}
VOID(pthread_mutex_unlock(&LOCK_open));