aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-02-20 06:28:42 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-02-20 06:28:42 +0000
commitf4d108a25747754b5d265b12ef32c791ab547782 (patch)
tree6d0ff8e1e895d4115cb379cdfc2ea76327e661f6 /src/backend/parser
parent4467194b4479537c319a1842d27feaf027ac9fe2 (diff)
downloadpostgresql-f4d108a25747754b5d265b12ef32c791ab547782.tar.gz
postgresql-f4d108a25747754b5d265b12ef32c791ab547782.zip
Even after the great date/time consolidation, TypeCategory() was still
a few bricks shy of a load concerning knowing all the date/time types. This is real bad because it interferes with func_select_candidate()'s willingness to disambiguate functions --- func_select_candidate() will punt unless all the available choices have the same type category. I think this whole mechanism needs redesigned, but in the meantime this is a needed patch.
Diffstat (limited to 'src/backend/parser')
-rw-r--r--src/backend/parser/parse_coerce.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/parser/parse_coerce.c b/src/backend/parser/parse_coerce.c
index 7fa7b016881..dbb6cbc5816 100644
--- a/src/backend/parser/parse_coerce.c
+++ b/src/backend/parser/parse_coerce.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.30 2000/02/16 17:24:37 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.31 2000/02/20 06:28:42 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -298,12 +298,15 @@ TypeCategory(Oid inType)
result = NUMERIC_TYPE;
break;
+ case (DATEOID):
+ case (TIMEOID):
case (ABSTIMEOID):
case (TIMESTAMPOID):
result = DATETIME_TYPE;
break;
case (RELTIMEOID):
+ case (TINTERVALOID):
case (INTERVALOID):
result = TIMESPAN_TYPE;
break;