From: Josh Berkus <josh@agliodbs.com>
To: Alan Gutierrez <alangutierrez@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Re: Re: DateDiff, IsNull?
Date: Wed, 15 Aug 2001 08:10:36 -0700
Message-ID: <web-102637@davinci.ethosmedia.com> (raw)
In-Reply-To: <Pine.WNT.4.33.0108150830580.1088-100000@CX1198465-B>
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
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: josh@agliodbs.com, alangutierrez@hotmail.com
Subject: Re: Re: Re: DateDiff, IsNull?
In-Reply-To: <web-102637@davinci.ethosmedia.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