summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-12-10 22:46:14 +0200
committerunknown <bell@sanja.is.com.ua>2003-12-10 22:46:14 +0200
commitfc75518a78af9dfb68baac2cbf279983fe54b492 (patch)
treeae06b7876934d32768f586a08de67e43088d1fad /sql/sql_derived.cc
parente0daf11201dd6e81af73c1c74270039e73845a24 (diff)
downloadmariadb-git-fc75518a78af9dfb68baac2cbf279983fe54b492.tar.gz
fixed unlocking tables during subquery execution (BUG#2048)
mysql-test/r/subselect_innodb.result: bug 2048 test mysql-test/t/subselect_innodb.test: bug 2048 test sql/item_subselect.cc: do not unlock tables for subqueries sql/sql_derived.cc: derived table tables can be unlocked sql/sql_lex.h: new interface to pass additional options sql/sql_union.cc: new interface to pass additional options do not unlock tables for UNION
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 e8f1c5d87de..10d2254969a 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -114,7 +114,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
DBUG_RETURN(1); // out of memory
// st_select_lex_unit::prepare correctly work for single select
- if ((res= unit->prepare(thd, derived_result)))
+ if ((res= unit->prepare(thd, derived_result, 0)))
goto exit;
/*