summaryrefslogtreecommitdiff
path: root/sql/sql_analyse.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-02-16 20:37:51 +0200
committerunknown <bell@sanja.is.com.ua>2003-02-16 20:37:51 +0200
commit77f5c5a7cf4e99fa3d760f1541bafec3b182def3 (patch)
tree49124c9d7a4d500f48cad2744d46b5f87542783b /sql/sql_analyse.h
parent2854479ef3acfd1b9a2f400d0874201cd1d7a78f (diff)
downloadmariadb-git-77f5c5a7cf4e99fa3d760f1541bafec3b182def3.tar.gz
fixed excluding st_select_lex from global select list
fixed destroing not well constructed analize object fixed wrong detection of unions in derived tables sql/sql_analyse.h: fixed destroing not well constructed analize object sql/sql_derived.cc: fixed wrong detection of unions in derived tables sql/sql_lex.cc: fixed excluding st_select_lex from global select list
Diffstat (limited to 'sql/sql_analyse.h')
-rw-r--r--sql/sql_analyse.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/sql_analyse.h b/sql/sql_analyse.h
index ada46374a15..5f0058c3ad9 100644
--- a/sql/sql_analyse.h
+++ b/sql/sql_analyse.h
@@ -306,13 +306,14 @@ protected:
public:
uint max_tree_elements, max_treemem;
- analyse(select_result *res) :Procedure(res, PROC_NO_SORT), rows(0),
- output_str_length(0) {}
+ analyse(select_result *res) :Procedure(res, PROC_NO_SORT), f_info(0),
+ rows(0), output_str_length(0) {}
~analyse()
- {
- for (field_info **f=f_info; f != f_end; f++)
- delete (*f);
+ {
+ if (f_info)
+ for (field_info **f=f_info; f != f_end; f++)
+ delete (*f);
}
virtual void add() {}
virtual bool change_columns(List<Item> &fields);