Re: remove undocumented assign syntax from plpgsql doc

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: remove undocumented assign syntax from plpgsql doc
Дата
Msg-id 20140115203604.GA30822@momjian.us
обсуждение исходный текст
Ответ на Re: remove undocumented assign syntax from plpgsql doc  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: remove undocumented assign syntax from plpgsql doc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: remove undocumented assign syntax from plpgsql doc
Следующее
От: Tom Lane
Дата:
Сообщение: Re: remove undocumented assign syntax from plpgsql doc