mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Using clause has to accept signed numeric constants too.
This commit is contained in:
@ -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: /*EMPTY*/
|
||||||
| statements statement
|
| statements statement
|
||||||
@ -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; }
|
||||||
|
Reference in New Issue
Block a user