Skip to content

Commit 09eeaa7

Browse files
[fixup] Initialise order->in_field_list
Otherwise we may get sql/table.h:239:16: runtime error: load of value 165, which is not a valid value for type 'bool'
1 parent 658f830 commit 09eeaa7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/sql_parse.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8058,6 +8058,7 @@ bool add_to_list(THD *thd, SQL_I_List<ORDER> &list, Item *item,bool asc)
80588058
order->window_funcs.empty();
80598059
else if (order->window_funcs.copy(&thd->lex->clause_winfuncs, thd->mem_root))
80608060
DBUG_RETURN(1);
8061+
order->in_field_list= false;
80618062
list.link_in_list(order, &order->next);
80628063
DBUG_RETURN(0);
80638064
}

0 commit comments

Comments
 (0)