Below is the list of changes that have just been committed into a local
4.1 repository of ram. When ram does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2456 05/09/22 11:46:54 ramil@stripped +1 -0
Merge rkalimullin@stripped:/home/bk/mysql-4.1
into mysql.com:/usr/home/ram/work/4.1.b11553
sql/sql_yacc.yy
1.394 05/09/22 11:46:44 ramil@stripped +0 -0
Auto merged
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: ramil
# Host: gw.mysql.r18.ru
# Root: /usr/home/ram/work/4.1.b11553/RESYNC
--- 1.393/sql/sql_yacc.yy 2005-09-20 12:50:07 +05:00
+++ 1.394/sql/sql_yacc.yy 2005-09-22 11:46:44 +05:00
@@ -644,7 +644,8 @@
NUM_literal
%type <item_list>
- expr_list udf_expr_list when_list ident_list ident_list_arg
+ expr_list udf_expr_list udf_sum_expr_list when_list ident_list
+ ident_list_arg
%type <key_type>
key_type opt_unique_or_fulltext constraint_key_type
@@ -3137,21 +3138,21 @@
{ $$= new Item_func_trim($5,$3); }
| TRUNCATE_SYM '(' expr ',' expr ')'
{ $$= new Item_func_round($3,$5,1); }
- | UDA_CHAR_SUM '(' udf_expr_list ')'
+ | UDA_CHAR_SUM '(' udf_sum_expr_list ')'
{
if ($3 != NULL)
$$ = new Item_sum_udf_str($1, *$3);
else
$$ = new Item_sum_udf_str($1);
}
- | UDA_FLOAT_SUM '(' udf_expr_list ')'
+ | UDA_FLOAT_SUM '(' udf_sum_expr_list ')'
{
if ($3 != NULL)
$$ = new Item_sum_udf_float($1, *$3);
else
$$ = new Item_sum_udf_float($1);
}
- | UDA_INT_SUM '(' udf_expr_list ')'
+ | UDA_INT_SUM '(' udf_sum_expr_list ')'
{
if ($3 != NULL)
$$ = new Item_sum_udf_int($1, *$3);
@@ -3288,6 +3289,21 @@
udf_expr_list:
/* empty */ { $$= NULL; }
| expr_list { $$= $1;};
+
+udf_sum_expr_list:
+ {
+ LEX *lex= Lex;
+ if (lex->current_select->inc_in_sum_expr())
+ {
+ yyerror(ER(ER_SYNTAX_ERROR));
+ YYABORT;
+ }
+ }
+ udf_expr_list
+ {
+ Select->in_sum_expr--;
+ $$= $2;
+ };
sum_expr:
AVG_SYM '(' in_sum_expr ')'
| Thread |
|---|
| • bk commit into 4.1 tree (ramil:1.2456) | ramil | 22 Sep |