summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordkatz@damien-katzs-computer.local <>2007-06-18 21:11:10 -0400
committerdkatz@damien-katzs-computer.local <>2007-06-18 21:11:10 -0400
commite1ea1cb66f76887be3c9da2305552e7252669129 (patch)
tree57e950caab4d8ad06ec277aeef36b77b0323d705
parentf9de8dc217f72a1a86b40037b94b2a81b9d05137 (diff)
downloadmariadb-git-e1ea1cb66f76887be3c9da2305552e7252669129.tar.gz
Bug #28921 Queries containg UDF functions are cached
Additional edits to the 5.0 ChangeSet|1.2519 that are necessary for the fix to work with the new code structure in 5.1.
-rw-r--r--sql/item_create.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index 309bd78b04e..b3522ba352c 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -2437,6 +2437,7 @@ Create_udf_func::create(THD *thd, udf_func *udf, List<Item> *item_list)
my_error(ER_NOT_SUPPORTED_YET, MYF(0), "UDF return type");
}
}
+ thd->lex->safe_to_cache_query= 0;
return func;
}
#endif