Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 192dd84

Browse files
author
Michael Meskes
committed
Using clause has to accept signed numeric constants too.
1 parent 17dc173 commit 192dd84

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/interfaces/ecpg/preproc/ecpg.trailer

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.2 2008/11/15 22:18:05 adunstan Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.3 2008/12/12 12:14:43 meskes Exp $ */
22

33
statements: /*EMPTY*/
44
| statements statement
@@ -984,7 +984,11 @@ UsingValue: UsingConst
984984
;
985985

986986
UsingConst: Iconst { $$ = $1; }
987+
| '+' Iconst { $$ = cat_str(2, make_str("+"), $2); }
988+
| '-' Iconst { $$ = cat_str(2, make_str("-"), $2); }
987989
| ecpg_fconst { $$ = $1; }
990+
| '+' ecpg_fconst { $$ = cat_str(2, make_str("+"), $2); }
991+
| '-' ecpg_fconst { $$ = cat_str(2, make_str("-"), $2); }
988992
| ecpg_sconst { $$ = $1; }
989993
| ecpg_bconst { $$ = $1; }
990994
| ecpg_xconst { $$ = $1; }

0 commit comments

Comments
 (0)