From: Joe Conway <mail@joeconway.com>
To: josh@agliodbs.com
Cc: Michael Paesold <mpaesold@gmx.at>
Cc: pgsql-sql@postgresql.org
Subject: Re: Assignments in PL/pgSQL
Date: Fri, 13 Sep 2002 11:04:57 -0700
Message-ID: <3D8228C9.5080004@joeconway.com> (raw)
References: <GNELIHDDFBOCMGBFGEFOMEDICEAA.chriskl@familyhealth.com.au>
<007301c25b12$5b8d96e0$4201a8c0@beeblebrox>
<200209131051.41556.josh@agliodbs.com>
Josh Berkus wrote:
> I'm very surprised, too. The "=" syntax is not per spec; my guess is,
> somebody coded in compatibility for DB conversion purposes and left it there.
> Jan? Tom?
>
I also noticed this the other day while messing with the plpgsql lexer:
/* ----------
* The keyword rules
* ----------
*/
:= { return K_ASSIGN; }
= { return K_ASSIGN; }
This code goes back to the original scan.l from 1998. I'm guessing it has
always worked, but was never documented -- but I've been known to be wrong
sometimes ;-). Hopefully Jan will chime in.
Joe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mail@joeconway.com, josh@agliodbs.com, mpaesold@gmx.at
Subject: Re: Assignments in PL/pgSQL
In-Reply-To: <3D8228C9.5080004@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox