Commit 2d52be9f authored by konstantin@oak.local's avatar konstantin@oak.local

don't delete select_lex->having and select_lex->where as we delete

all items in free_prep_stmt(free_items);

indentation fix
parent 3ee75849
...@@ -671,8 +671,6 @@ static bool mysql_test_select_fields(PREP_STMT *stmt, TABLE_LIST *tables, ...@@ -671,8 +671,6 @@ static bool mysql_test_select_fields(PREP_STMT *stmt, TABLE_LIST *tables,
fix_tables_pointers(thd->lex.all_selects_list); fix_tables_pointers(thd->lex.all_selects_list);
if (!result && !(result= new select_send())) if (!result && !(result= new select_send()))
{ {
delete select_lex->having;
delete select_lex->where;
send_error(thd, ER_OUT_OF_RESOURCES); send_error(thd, ER_OUT_OF_RESOURCES);
DBUG_RETURN(1); DBUG_RETURN(1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment