Re: plpgsql, declare blocks, and '=' versus ':='

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: James Robinson <jlrobins(at)socialserve(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: plpgsql, declare blocks, and '=' versus ':='
Date: 2008-07-11 17:08:03
Message-ID: 20080711170803.GF4110@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

James Robinson wrote:
> It seems that [ in 8.2.9 at least ], in a plpgsql declare block,
> assignment to declared variable can use either the proper ':=' operator
> or the unexpected and undocumented '=' operator. See following script.
> The magic handling of '=' ought to get documented at least.
>
> [ plpgsql-declarations.html makes no mention of '=' token handling in
> either 8.3 or 8.2. docs ]

Yes.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Robert Treat 2008-07-15 02:42:04 triggers on views?
Previous Message James Robinson 2008-07-11 16:25:35 plpgsql, declare blocks, and '=' versus ':='