summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-06-25 21:43:02 +0200
committerunknown <serg@serg.mylan>2004-06-25 21:43:02 +0200
commit00567fe6342fc6cc60df0244ac5b0eeb1e792981 (patch)
tree3793f5cd3c67c9920e6eb21c2eabba3f633952a2 /sql/sql_select.cc
parentb4336ad4e0478f6e5a05ef66ebe68a66deafbbe6 (diff)
downloadmariadb-git-00567fe6342fc6cc60df0244ac5b0eeb1e792981.tar.gz
release cursors in return_zero_rows
sql/opt_range.cc: incorrect fix removed. range optimizer is made slightly more stable vs. compiler optimizations
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index d8662af1d39..528ff2065a2 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -4128,6 +4128,8 @@ return_zero_rows(JOIN *join, select_result *result,TABLE_LIST *tables,
DBUG_RETURN(0);
}
+ join->join_free(0);
+
if (send_row)
{
for (TABLE_LIST *table=tables; table ; table=table->next)