Re: Fix for FETCH FIRST syntax problems - Mailing list pgsql-hackers

From Vik Fearing
Subject Re: Fix for FETCH FIRST syntax problems
Date
Msg-id d000efee-348c-0e31-4286-9732755b7d7e@2ndquadrant.com
Whole thread Raw
In response to Re: Fix for FETCH FIRST syntax problems  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
On 20/05/18 05:25, Andrew Gierth wrote:
> +select_fetch_first_value:
> +            c_expr                                    { $$ = $1; }
> +            | '+' I_or_F_const
> +                { $$ = (Node *) makeSimpleA_Expr(AEXPR_OP, "+", NULL, $2, @1); }
> +            | '-' I_or_F_const
> +                { $$ = doNegate($2, @1); }

I think there should be a comment for why you're accepting FCONST when
the value has to be integral.
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: Fix for FETCH FIRST syntax problems
Next
From: David Fetter
Date:
Subject: Re: Fix for FETCH FIRST syntax problems