From 6389639d84ea0b7c4e2e5eb26f0c633a3480f8b3 Mon Sep 17 00:00:00 2001 From: "mronstrom@mysql.com" <> Date: Mon, 18 Jul 2005 15:23:26 +0200 Subject: [PATCH] Patch to get prepared statements to properly handle partitioning --- sql/sql_prepare.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 3e291243e1e..b4293ef7836 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -1776,10 +1776,10 @@ bool mysql_stmt_prepare(THD *thd, char *packet, uint packet_length, /* Reset warnings from previous command */ mysql_reset_errors(thd, 0); lex= thd->lex; - lex->safe_to_cache_query= 0; error= yyparse((void *)thd) || thd->is_fatal_error || thd->net.report_error || init_param_array(stmt); + lex->safe_to_cache_query= 0; /* While doing context analysis of the query (in check_prepared_statement) we allocate a lot of additional memory: for open tables, JOINs, derived