diff options
author | dlenev@brandersnatch.localdomain <> | 2005-04-30 20:23:40 +0400 |
---|---|---|
committer | dlenev@brandersnatch.localdomain <> | 2005-04-30 20:23:40 +0400 |
commit | 8ee6d33bdd49978b68a78126653d3b4aaa60a4ca (patch) | |
tree | 2531ee01896fe3400fbbf89a3673a17ba54fd42f /sql/item_func.h | |
parent | 0fc5a1678c7cf4dab6f13f1168e6575a551f0c6e (diff) | |
download | mariadb-git-8ee6d33bdd49978b68a78126653d3b4aaa60a4ca.tar.gz |
Fix for Bug #9913 "udf_deinit is not called after execution of PS"
(aka "deinit is not called when calling udf from trigger").
We should call udf_deinit() function during cleanup phase after prepared
(or ordinary) statement execution instead of calling it from Item's
desctructor.
No test case is provided since it is hard to test UDF's from our test
suite.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 3a309f4ae99..7244fc73a42 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -786,6 +786,7 @@ public: fixed= 1; return res; } + void cleanup(); Item_result result_type () const { return udf.result_type(); } table_map not_null_tables() const { return 0; } }; |