diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-02 22:50:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-02 22:50:23 +0000 |
commit | e34082ee3b07c0cf483e0bc5b8e25cc882e19ddc (patch) | |
tree | 39b35a9041aaa1da930c1702ce434e175d3a029c /src/backend/utils/adt/date.c | |
parent | 0b89d261c7a91ff9ebc6a6b9bd3ee129576bdd9a (diff) | |
download | postgresql-e34082ee3b07c0cf483e0bc5b8e25cc882e19ddc.tar.gz postgresql-e34082ee3b07c0cf483e0bc5b8e25cc882e19ddc.zip |
Add missing operators of the form interval-plus-datetime, as required for
better SQL compliance in this area, per recent discussion. Mark related
operators as commutators where possible. (The system doesn't actually care
about commutator marking for operators not returning boolean, at the moment,
but this seems forward-thinking and besides it made it easier to verify
that we hadn't missed any.)
Also, remove interval-minus-time and interval-minus-timetz operators.
I'm not sure how these got in, but they are nonstandard and had very
obviously broken behavior. (minus is not commutative in anyone's book.)
I doubt anyone had ever used 'em, because we'd surely have gotten a bug
report about it if so.
Diffstat (limited to 'src/backend/utils/adt/date.c')
-rw-r--r-- | src/backend/utils/adt/date.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/backend/utils/adt/date.c b/src/backend/utils/adt/date.c index 1caa68d774b..c4fe0b71dcd 100644 --- a/src/backend/utils/adt/date.c +++ b/src/backend/utils/adt/date.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.99 2004/06/03 02:08:04 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.100 2004/07/02 22:49:46 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1531,18 +1531,6 @@ time_mi_interval(PG_FUNCTION_ARGS) PG_RETURN_TIMEADT(result); } -/* interval_pl_time() - * Add time to interval. - */ -Datum -interval_pl_time(PG_FUNCTION_ARGS) -{ - Datum span = PG_GETARG_DATUM(0); - Datum time = PG_GETARG_DATUM(1); - - return DirectFunctionCall2(time_pl_interval, time, span); -} - /* time_text() * Convert time to text data type. |