Re: named parameters in SQL functions - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: named parameters in SQL functions
Date
Msg-id 4B0058D8.6040102@dunslane.net
Whole thread Raw
In response to Re: named parameters in SQL functions  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers

David E. Wheeler wrote:
>
> $foo should be killed off as a valid identifier, IMNSHO.
>
>
>   

It's only legal when quoted. Unquoted indetifiers can't begin with $. 
see scan.l:
           ident_start     [A-Za-z\200-\377_]           ident_cont      [A-Za-z\200-\377_0-9\$]           identifier
 {ident_start}{ident_cont}*
 

cheers

andrew



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Summary and Plan for Hot Standby
Next
From: Simon Riggs
Date:
Subject: Re: Summary and Plan for Hot Standby