Re: remove undocumented assign syntax from plpgsql doc - Mailing list pgsql-docs

From Bruce Momjian
Subject Re: remove undocumented assign syntax from plpgsql doc
Date
Msg-id 20140115203604.GA30822@momjian.us
Whole thread Raw
In response to Re: remove undocumented assign syntax from plpgsql doc  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: remove undocumented assign syntax from plpgsql doc  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
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. +


pgsql-docs by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: remove undocumented assign syntax from plpgsql doc
Next
From: Tom Lane
Date:
Subject: Re: remove undocumented assign syntax from plpgsql doc