From 192dd845a118cf285523e968660135c6a95afdca Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Fri, 12 Dec 2008 12:14:43 +0000 Subject: [PATCH] Using clause has to accept signed numeric constants too. --- src/interfaces/ecpg/preproc/ecpg.trailer | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/interfaces/ecpg/preproc/ecpg.trailer b/src/interfaces/ecpg/preproc/ecpg.trailer index dd425c9418b..5f4a216f996 100644 --- a/src/interfaces/ecpg/preproc/ecpg.trailer +++ b/src/interfaces/ecpg/preproc/ecpg.trailer @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.2 2008/11/15 22:18:05 adunstan Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.3 2008/12/12 12:14:43 meskes Exp $ */ statements: /*EMPTY*/ | statements statement @@ -984,7 +984,11 @@ UsingValue: UsingConst ; UsingConst: Iconst { $$ = $1; } + | '+' Iconst { $$ = cat_str(2, make_str("+"), $2); } + | '-' Iconst { $$ = cat_str(2, make_str("-"), $2); } | ecpg_fconst { $$ = $1; } + | '+' ecpg_fconst { $$ = cat_str(2, make_str("+"), $2); } + | '-' ecpg_fconst { $$ = cat_str(2, make_str("-"), $2); } | ecpg_sconst { $$ = $1; } | ecpg_bconst { $$ = $1; } | ecpg_xconst { $$ = $1; } -- 2.39.5