Received: from candle.pha.pa.us (maillist@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.8.8/8.7.5) with ESMTP id OAA24170; Thu, 16 Jul 1998 14:39:37 -0400 (EDT) Received: (from maillist@localhost) by candle.pha.pa.us (8.8.5/8.8.5) id OAA05257; Thu, 16 Jul 1998 14:37:30 -0400 (EDT) From: Bruce Momjian Message-Id: <199807161837.OAA05257@candle.pha.pa.us> Subject: Re: [INTERFACES] Re: [HACKERS] changes in 6.4 In-Reply-To: <9807161829.AA16975@hawk.illustra.com> from David Gould at "Jul 16, 1998 11:29:26 am" To: dg@illustra.com (David Gould) Date: Thu, 16 Jul 1998 14:37:17 -0400 (EDT) Cc: hannu@trust.ee, vadim@krs.ru, pgsql-interfaces@postgreSQL.org, hackers@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > > > hannu-> check (trim(a) <> '' or trim(b) <> '')); > > > > ERROR: parser: parse error at or near "trim" > > > > > > TRIM is keyword, not a function... > > > We have to copy some lines in gram.y > > I think that having trim as a keyword is a problem. The primary virtue of > postgres is that everything is either a function or a type and as such is > definable by the user and resolved at runtime. Making a keyword out of a > function spoils that capability. Problem was that SQL standard syntax (or Oracle) did not allow it to be a function. -- Bruce Momjian | 830 Blythe Avenue maillist@candle.pha.pa.us | Drexel Hill, Pennsylvania 19026 + If your life is a hard drive, | (610) 353-9879(w) + Christ can be your backup. | (610) 853-3000(h)