diff options
author | Michael Widenius <monty@askmonty.org> | 2011-03-31 16:26:51 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-03-31 16:26:51 +0300 |
commit | 1ee94dc2f7f3deb81eadd52b546b827ca76c24a9 (patch) | |
tree | cc459fb7b44b5da8de526b91e9718fdb5ec40946 /sql/sql_expression_cache.cc | |
parent | 309e016eec1e0eaed144c3f43fff8470663e1a13 (diff) | |
download | mariadb-git-1ee94dc2f7f3deb81eadd52b546b827ca76c24a9.tar.gz |
Fixed all BUILD scripts to use g++ instead of gcc for linking
Fixed memory leak from HEAP tables that was not deleted properly
BUILD/compile-alpha-ccc:
Use g++ instead of gcc for linking
BUILD/compile-alpha-debug:
Use g++ instead of gcc for linking
BUILD/compile-pentium-pgcc:
Use g++ instead of gcc for linking
BUILD/compile-solaris-sparc:
Use g++ instead of gcc for linking
BUILD/compile-solaris-sparc-debug:
Use g++ instead of gcc for linking
BUILD/compile-solaris-sparc-purify:
Use g++ instead of gcc for linking
sql/item.cc:
Safety fixes for expr_cache
Call Item_result:field::cleanup() in Item_cache_wrapper::cleanup()
More DBUG_PRINT
sql/sql_base.cc:
Simple optimization for setup_wild
More DBUG_PRINT
sql/sql_expression_cache.cc:
Added header
Removed not needed initialization
sql/sql_lex.cc:
More DBUG_PRINT
sql/sql_select.cc:
More DBUG_PRINT
Fixed memory leak from HEAP tables that was not deleted properly
storage/heap/hp_create.c:
More DBUG_PRINT
Diffstat (limited to 'sql/sql_expression_cache.cc')
-rw-r--r-- | sql/sql_expression_cache.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sql/sql_expression_cache.cc b/sql/sql_expression_cache.cc index 188d93e8b8a..db1f47c5603 100644 --- a/sql/sql_expression_cache.cc +++ b/sql/sql_expression_cache.cc @@ -1,3 +1,17 @@ +/* Copyright (C) 2010-2011 Monty Program Ab & Oleksandr Byelkin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "mysql_priv.h" #include "sql_select.h" @@ -84,7 +98,6 @@ void Expression_cache_tmptable::init() cache_table_param.field_count= list->elements + 1; /* postpone table creation to index description */ cache_table_param.skip_create_table= 1; - cache_table= NULL; items.push_front(val); |