Commit 192dd845 authored by Michael Meskes's avatar Michael Meskes

Using clause has to accept signed numeric constants too.

parent 17dc1736
/* $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: /*EMPTY*/
| statements statement | statements statement
...@@ -984,7 +984,11 @@ UsingValue: UsingConst ...@@ -984,7 +984,11 @@ UsingValue: UsingConst
; ;
UsingConst: Iconst { $$ = $1; } UsingConst: Iconst { $$ = $1; }
| '+' Iconst { $$ = cat_str(2, make_str("+"), $2); }
| '-' Iconst { $$ = cat_str(2, make_str("-"), $2); }
| ecpg_fconst { $$ = $1; } | ecpg_fconst { $$ = $1; }
| '+' ecpg_fconst { $$ = cat_str(2, make_str("+"), $2); }
| '-' ecpg_fconst { $$ = cat_str(2, make_str("-"), $2); }
| ecpg_sconst { $$ = $1; } | ecpg_sconst { $$ = $1; }
| ecpg_bconst { $$ = $1; } | ecpg_bconst { $$ = $1; }
| ecpg_xconst { $$ = $1; } | ecpg_xconst { $$ = $1; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment