Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7FFAkP06965 for ; Wed, 15 Aug 2001 11:10:46 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 102637; Wed, 15 Aug 2001 08:10:36 -0700 From: "Josh Berkus" Subject: Re: Re: Re: DateDiff, IsNull? To: Alan Gutierrez , pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Wed, 15 Aug 2001 08:10:36 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_===102637====davinci.ethosmedia.com===_" X-Archive-Number: 200108/210 X-Sequence-Number: 4442 This is a multi-part MIME message --_===102637====davinci.ethosmedia.com===_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Alan, Tom, Ross, etc: > > Well, Alan, overloading operators is sort of important to the user > > definable types in postgresql. And any cross-type functionality, > actually. Hmmm ... I wasn't aware that what SQL does is "operator overloading", per se. Instead, I was under the SQL-spec impression that operators were defined within the context of their relative datatypes, and only within that context. For example, currently 730::INT / 7::INT works fine, but '2 years'::INTERVAL / '1 week'::INTERVAL gives me an "operator not defined" error. This is because nobody has had time to define the operator "/" in the context of INTERVAL / INTERVAL. When someone does (oh please? grovel, grovel) it will be defined, not overloaded. Similarly, the operator "+" has no standard defintion in the context of VARCHAR + VARCHAR. So how is defining it as a concatination operator (whatever other problems there might be with that) "overloading"? Or am I missing the point? -Josh Berkus ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco --_===102637====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===102637====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===102637====davinci.ethosmedia.com===_ Content-Type: text/plain Content-Disposition: attachment; filename="" Content-Transfer-Encoding: base64 DQo= --_===102637====davinci.ethosmedia.com===_--