summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2003-04-21 21:03:32 +0300
committerSinisa@sinisa.nasamreza.org <>2003-04-21 21:03:32 +0300
commitadb52cfc70b8624dfbf4d36fa966fc20b3b0452d (patch)
tree7a08a3618a847d9c0596c98295a731eff9e349b0 /sql/sql_lex.h
parent8902b739e9243cd82a06ed4e0b75c646af002814 (diff)
downloadmariadb-git-adb52cfc70b8624dfbf4d36fa966fc20b3b0452d.tar.gz
Fix for a bug record #307.
Very nasty bug. It was caused by double free()-ing memory of join->select and join->quick. I was able to pinpoint it only after using Valgrind. Plus better fix for bug with TMP_TABLE_PARAM. Plus new constructor for SELECT_LEX.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 9fb0f8cfdf5..97cf19454ae 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -396,6 +396,8 @@ public:
}
friend void mysql_init_query(THD *thd);
+ st_select_lex(struct st_lex *lex);
+ st_select_lex() {;}
void make_empty_select(st_select_lex *last_select)
{
select_number=INT_MAX;
@@ -478,7 +480,7 @@ typedef struct st_lex
CHARSET_INFO *charset;
char *help_arg;
SQL_LIST *gorder_list;
-
+ st_lex() {;}
inline void uncacheable()
{
safe_to_cache_query= 0;