From e8dbb8f7084187a431713c3d0d76d2f573835bc6 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 18 Jun 2007 21:11:10 -0400 Subject: 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. sql/item_create.cc: Added line to prevent a query that contains a UDF from being cached. In 5.0 this was handled in sql_yacc.cc but now the the individual Create_func builders will be responsible for clearing the flag. --- sql/item_create.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/item_create.cc') 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_list) my_error(ER_NOT_SUPPORTED_YET, MYF(0), "UDF return type"); } } + thd->lex->safe_to_cache_query= 0; return func; } #endif -- cgit v1.2.1