On Wed, Jan 15, 2014 at 05:39:22PM +0100, Pavel Stehule wrote:
> I don't understand last sentence of comment
>
> ! /*
> ! * Ada-based PL/SQL uses := for assignment and variable defaults, while
> ! * the SQL standard uses equals for these cases and for GET
> ! * DIAGNOSTICS, so we support both. FOR and OPEN only support :=.
> ! */
> ! assign_operator : '='
>
> "FOR and OPEN only support :="
>
> FOR statement nor OPEN statement doesn't use ":="
Uh, I see it in the documented syntax:
OPEN <replaceable>bound_cursorvar</replaceable> <optional> ( <optional>
<replaceable>argument_name</replaceable> := </optional> <---
<replaceable>argument_value
FOR <replaceable>recordvar</replaceable> IN
<replaceable>bound_cursorvar</replaceable> <optional> ( <optional>
<replaceable>argument_name</replaceable> := <---
</optional> <replaceable>argument_value
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +