Re: remove undocumented assign syntax from plpgsql doc

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: remove undocumented assign syntax from plpgsql doc
Date: 2014-01-15 20:36:04
Message-ID: 20140115203604.GA30822@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ Everyone has their own god. +

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2014-01-15 20:47:13 Re: remove undocumented assign syntax from plpgsql doc
Previous Message Pavel Stehule 2014-01-15 16:39:22 Re: remove undocumented assign syntax from plpgsql doc