summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-05-20 02:02:49 +0300
committerbell@sanja.is.com.ua <>2004-05-20 02:02:49 +0300
commitc7396f8d207510456e37143a3f3e1d0ae7c1a305 (patch)
treede54f6ead302056d37992e52523ed0bec48700fc /sql/sql_derived.cc
parent9620715679e21196e087a57f10f42b974c281fe3 (diff)
downloadmariadb-git-c7396f8d207510456e37143a3f3e1d0ae7c1a305.tar.gz
PS and SP made compatible in mechanism used for preparing query for rexecutions (Bug #2266)
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r--sql/sql_derived.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index 2e2ad6786fc..46794f45f3c 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -152,7 +152,7 @@ static int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
if it is preparation PS only then we do not need real data and we
can skip execution (and parameters is not defined, too)
*/
- if (!thd->current_statement)
+ if (!thd->only_prepare())
{
if (is_union)
{