mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user