diff options
author | bell@sanja.is.com.ua <> | 2004-05-20 02:02:49 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-05-20 02:02:49 +0300 |
commit | c7396f8d207510456e37143a3f3e1d0ae7c1a305 (patch) | |
tree | de54f6ead302056d37992e52523ed0bec48700fc /sql/sql_derived.cc | |
parent | 9620715679e21196e087a57f10f42b974c281fe3 (diff) | |
download | mariadb-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.cc | 2 |
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) { |