Commit 9b3f177c authored by Sergei Golubchik's avatar Sergei Golubchik

avoid unintentional %union size increases

parent 103a32fd
...@@ -788,6 +788,8 @@ Virtual_column_info *add_virtual_expression(THD *thd, Item *expr) ...@@ -788,6 +788,8 @@ Virtual_column_info *add_virtual_expression(THD *thd, Item *expr)
} }
%{ %{
/* avoid unintentional %union size increases, it's what a parser stack made of */
static_assert(sizeof(YYSTYPE) == sizeof(void*)*2+8, "%union size check");
bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize); bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%} %}
......
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