summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2003-04-26 15:12:14 +0300
committerunknown <Sinisa@sinisa.nasamreza.org>2003-04-26 15:12:14 +0300
commit18a321adce6f07c62fae971bf022316cc649cfba (patch)
tree2b95575b4286f33a9be8c889def65f21ec7b0aea /sql/sql_derived.cc
parent8078280c7664a385bccdf394f4927474ef738d98 (diff)
downloadmariadb-git-18a321adce6f07c62fae971bf022316cc649cfba.tar.gz
Making a better fix for double released pointers and safe
TMP_TABLE_PARAM. This involved moving things around in include files. All tests, including the ones with Valgrind passed.
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 836c1eb048e..7f555f37d40 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -151,7 +151,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
if ((derived_result=new select_union(table)))
{
- derived_result->tmp_table_param=&tmp_table_param;
+ derived_result->tmp_table_param=tmp_table_param;
unit->offset_limit_cnt= select_cursor->offset_limit;
unit->select_limit_cnt= select_cursor->select_limit+
select_cursor->offset_limit;