Re: PL/pgSQL 'i = i + 1' Syntax

From: David Wheeler <david(at)kineticode(dot)com>
To: Mark Dilger <pgsql(at)markdilger(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/pgSQL 'i = i + 1' Syntax
Date: 2006-05-16 23:58:12
Message-ID: 180C9975-87DE-45AB-A364-E97ADC8D2DDA@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On May 16, 2006, at 16:53, Mark Dilger wrote:

> Sorry, I meant to say that it should only be a no-op according to
> the language
> specification, as I understand it. The fact that it works suggests
> to me that
> the implementation of PL/pgsql has been modified (or broken?).
> Whether the
> change is a bug or an intentional feature change, I don't know.

Ah, yes, I agree, and that's why I posted my query.

> mark
>
> P.S., Looking through the documentation, I don't immediately see
> the spec for
> how a regular '=' is supposed to work, but assignment is documented
> as using the
> ':=' syntax and says nothing about '='.

Exactly. But I use = all the time for comparision:

IF FOUND = TRUE THEN
....
END IF

Best,

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2006-05-17 00:02:15 Re: PL/pgSQL 'i = i + 1' Syntax
Previous Message David Wheeler 2006-05-16 23:48:12 Re: PL/pgSQL 'i = i + 1' Syntax