Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9B0C9475DA7 for ; Thu, 9 Jan 2003 15:44:12 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 098EC475CB4 for ; Thu, 9 Jan 2003 15:44:12 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h09L1P6P009084; Thu, 9 Jan 2003 16:01:26 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h09Ki3j03843; Thu, 9 Jan 2003 15:44:05 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XX5J5BAT; Thu, 9 Jan 2003 15:44:03 -0500 Subject: Re: SQL function parse error ? From: Robert Treat To: Radu-Adrian Popescu Cc: Achilleus Mantzios , Tom Lane , pgsql-sql@postgresql.org In-Reply-To: <006301c2b7fc$41e58e40$0600a8c0@rpopescu> References: <777.1042127826@sss.pgh.pa.us> <006301c2b7fc$41e58e40$0600a8c0@rpopescu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 09 Jan 2003 15:44:03 -0500 Message-Id: <1042145043.2007.31.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/138 X-Sequence-Number: 11003 On Thu, 2003-01-09 at 11:29, Radu-Adrian Popescu wrote: > What i'm saying is that i know that some of my colleagues, nice guys for > that matter, and good programmers, will come screaming > to me "what's with the b.s. error ?!?", and when i'll tell them that the sql > parser belives that's an inexisting operator, they'll start > cursing at it, just like i did. > Does oracle or mysql or whichever db you like allow the use of $ in user defined operators? If so, how do they know the difference? For what it's worth, some policy should be enforced, because it shouldn't > matter how many spaces you put between the operator > and the operand, as writing SELECT * is the same as SELECT > *. > I rest my case. > Thats an invalid comparison. The problem is not that foo > $1 doesn't work, as your example put forth. The problem is that foo>$1 doesn't work, which by comparison would be SELECT* which would also not work. Robert Treat