Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C00514762AF for ; Fri, 13 Sep 2002 14:06:43 -0400 (EDT) Received: from joeconway.com (unknown [63.210.180.150]) by postgresql.org (Postfix) with ESMTP id 29BB34760F5 for ; Fri, 13 Sep 2002 14:06:43 -0400 (EDT) Received: from [206.19.64.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 1328372; Fri, 13 Sep 2002 10:48:28 -0700 Message-ID: <3D8228C9.5080004@joeconway.com> Date: Fri, 13 Sep 2002 11:04:57 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: josh@agliodbs.com Cc: Michael Paesold , pgsql-sql@postgresql.org Subject: Re: Assignments in PL/pgSQL References: <007301c25b12$5b8d96e0$4201a8c0@beeblebrox> <200209131051.41556.josh@agliodbs.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/141 X-Sequence-Number: 9418 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