diff options
author | monty@mysql.com <> | 2004-04-07 04:33:58 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-04-07 04:33:58 +0300 |
commit | 70c4eb5838d8cea7ef55226c1b757a12b4a47dec (patch) | |
tree | e2be01ea44891cc2fa4d0a64da4e14538f119f32 /sql/sql_yacc.yy | |
parent | 472e87a40cac9c7a348b012e8c4f6637d7ed4d31 (diff) | |
download | mariadb-git-70c4eb5838d8cea7ef55226c1b757a12b4a47dec.tar.gz |
Portability fixes
Fixed problems with group_concat() and HAVING
Updated crash-me values
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index a18b540141a..2daba654d47 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -3063,11 +3063,15 @@ sum_expr: { $$=new Item_sum_variance($3); } | SUM_SYM '(' in_sum_expr ')' { $$=new Item_sum_sum($3); } - | GROUP_CONCAT_SYM '(' opt_distinct expr_list opt_gorder_clause - opt_gconcat_separator ')' + | GROUP_CONCAT_SYM '(' opt_distinct + { Select->in_sum_expr++; } + expr_list opt_gorder_clause + opt_gconcat_separator + ')' { - $$=new Item_func_group_concat($3,$4,Select->gorder_list,$6); - $4->empty(); + Select->in_sum_expr--; + $$=new Item_func_group_concat($3,$5,Select->gorder_list,$7); + $5->empty(); }; opt_distinct: |