summaryrefslogtreecommitdiff
path: root/src/include/parser/parse_coerce.h
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-08-14 16:07:00 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-08-14 16:07:00 +0000
commit94f42ed3894ca4de85b47b308d29badb862eee9e (patch)
tree45de8eba4defc1048c1d39e6340111cd356a1d1b /src/include/parser/parse_coerce.h
parent58e9267026a5fb9217d6231349c55f8b1c745b48 (diff)
Include OID as a built-in type.
Diffstat (limited to 'src/include/parser/parse_coerce.h')
-rw-r--r--src/include/parser/parse_coerce.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h
index 3b12054b6e0..cf701a4c95f 100644
--- a/src/include/parser/parse_coerce.h
+++ b/src/include/parser/parse_coerce.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_coerce.h,v 1.3 1998/07/08 14:18:45 thomas Exp $
+ * $Id: parse_coerce.h,v 1.4 1998/08/14 16:07:00 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -34,7 +34,8 @@ typedef enum CATEGORY {
* - thomas 1998-05-13
*/
#define IS_BUILTIN_TYPE(t) \
- (((t) == BOOLOID) \
+ (((t) == OIDOID) \
+ || ((t) == BOOLOID) \
|| ((t) == BPCHAROID) \
|| ((t) == VARCHAROID) \
|| ((t) == TEXTOID) \
@@ -69,12 +70,15 @@ typedef enum CATEGORY {
|| ((a) == VARCHAROID && (b) == BPCHAROID) \
|| ((a) == TEXTOID && (b) == BPCHAROID) \
|| ((a) == TEXTOID && (b) == VARCHAROID) \
+ || ((a) == OIDOID && (b) == INT4OID) \
+ || ((a) == INT4OID && (b) == TIMESTAMPOID) \
|| ((a) == DATETIMEOID && (b) == FLOAT8OID) \
|| ((a) == FLOAT8OID && (b) == DATETIMEOID) \
|| ((a) == ABSTIMEOID && (b) == TIMESTAMPOID) \
|| ((a) == ABSTIMEOID && (b) == INT4OID) \
|| ((a) == TIMESTAMPOID && (b) == ABSTIMEOID) \
|| ((a) == TIMESTAMPOID && (b) == INT4OID) \
+ || ((a) == INT4OID && (b) == OIDOID) \
|| ((a) == INT4OID && (b) == ABSTIMEOID) \
|| ((a) == INT4OID && (b) == TIMESTAMPOID) \
|| ((a) == RELTIMEOID && (b) == INT4OID) \