diff options
-rw-r--r-- | sql/item_create.cc | 1 |
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 |