From df32f7d621becb146b759ab12751596e4d199e5c Mon Sep 17 00:00:00 2001 From: "monty@mysql.com" <> Date: Mon, 15 Aug 2005 18:15:12 +0300 Subject: Save and clear run context before executing a stored function or trigger and restore it afterwards. This allows us to use statement replication with functions and triggers The following things are fixed with this patch: - NOW() and automatic timestamps takes the value from the main event for functions and triggers (which allows these to replicate with statement level logging) - No side effects for triggers or functions with auto-increment values(), last_insert_id(), rand() or found_rows() - Triggers can't return result sets Fixes bugs: #12480: NOW() is not constant in a trigger #12481: Using NOW() in a stored function breaks statement based replication #12482: Triggers has side effects with auto_increment values #11587: trigger causes lost connection error --- tests/fork_big2.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/fork_big2.pl') diff --git a/tests/fork_big2.pl b/tests/fork_big2.pl index a1c55ac4c11..567cfafa176 100644 --- a/tests/fork_big2.pl +++ b/tests/fork_big2.pl @@ -300,7 +300,7 @@ sub test_select # # Do big select count(distinct..) over the table -# +# sub test_select_count { -- cgit v1.2.1