summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authorcmiller@zippy.cornsilk.net <>2006-10-12 17:51:56 -0400
committercmiller@zippy.cornsilk.net <>2006-10-12 17:51:56 -0400
commit177f6c64df1bf00ddef6093cc95c4abad164423b (patch)
tree2ce95da8f21103f5b040ef3c6d172dfbc1ab64f2 /sql/sql_trigger.cc
parent1279acd975688f042cf60af1df54b13c48120132 (diff)
downloadmariadb-git-177f6c64df1bf00ddef6093cc95c4abad164423b.tar.gz
Additional patch for 5.1 commit for Bug#14262.
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r--sql/sql_trigger.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index b35e126f2c3..61d2992ed1b 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -284,9 +284,8 @@ end:
thd->clear_error();
/* Such a statement can always go directly to binlog, no trans cache. */
- Query_log_event qinfo(thd, stmt_query.ptr(), stmt_query.length(), 0,
- FALSE);
- mysql_bin_log.write(&qinfo);
+ thd->binlog_query(THD::MYSQL_QUERY_TYPE,
+ stmt_query.ptr(), stmt_query.length(), FALSE, FALSE);
}
}