|
11 | 11 | *
|
12 | 12 | *
|
13 | 13 | * IDENTIFICATION
|
14 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.158 2000/03/18 00:33:45 momjian Exp $ |
| 14 | + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.159 2000/03/18 04:32:35 tgl Exp $ |
15 | 15 | *
|
16 | 16 | * HISTORY
|
17 | 17 | * AUTHOR DATE MAJOR EVENT
|
@@ -4168,6 +4168,8 @@ a_expr: c_expr
|
4168 | 4168 | * If you add more explicitly-known operators, be sure to add them
|
4169 | 4169 | * also to b_expr and to the MathOp list above.
|
4170 | 4170 | */
|
| 4171 | + | '+' a_expr %prec UMINUS |
| 4172 | + { $$ = makeA_Expr(OP, "+", NULL, $2); } |
4171 | 4173 | | '-' a_expr %prec UMINUS
|
4172 | 4174 | { $$ = doNegate($2); }
|
4173 | 4175 | | '%' a_expr
|
@@ -4384,6 +4386,8 @@ b_expr: c_expr
|
4384 | 4386 | { $$ = $1; }
|
4385 | 4387 | | b_expr TYPECAST Typename
|
4386 | 4388 | { $$ = makeTypeCast($1, $3); }
|
| 4389 | + | '+' b_expr %prec UMINUS |
| 4390 | + { $$ = makeA_Expr(OP, "+", NULL, $2); } |
4387 | 4391 | | '-' b_expr %prec UMINUS
|
4388 | 4392 | { $$ = doNegate($2); }
|
4389 | 4393 | | '%' b_expr
|
@@ -5480,8 +5484,9 @@ mapTargetColumns(List *src, List *dst)
|
5480 | 5484 | * Do not convert "float", since that is handled elsewhere
|
5481 | 5485 | * for FLOAT(p) syntax.
|
5482 | 5486 | *
|
5483 |
| - * Converting "datetime" to "timestamp" is a temporary expedient for |
5484 |
| - * pre-7.0 to 7.0 compatibility; it should go away again someday. |
| 5487 | + * Converting "datetime" to "timestamp" and "timespan" to "interval" |
| 5488 | + * is a temporary expedient for pre-7.0 to 7.0 compatibility; |
| 5489 | + * these should go away someday. |
5485 | 5490 | */
|
5486 | 5491 | static char *
|
5487 | 5492 | xlateSqlFunc(char *name)
|
|
0 commit comments