6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: parse_coerce.h,v 1.7 1998/10/22 13:51:05 momjian Exp $
9
+ * $Id: parse_coerce.h,v 1.7.2.1 1999/02/13 06:00:52 thomas Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -66,6 +66,9 @@ typedef enum CATEGORY
66
66
* Check for types with the same underlying binary representation.
67
67
* This allows us to cheat and directly exchange values without
68
68
*going through the trouble of calling a conversion function.
69
+ * Remove equivalencing of FLOAT8 and DATETIME. They really are not
70
+ * close enough in behavior, with the DATETIME reserved values
71
+ * and special formatting. - thomas 1999-01-24
69
72
*/
70
73
#define IS_BINARY_COMPATIBLE (a ,b ) \
71
74
(((a) == BPCHAROID && (b) == TEXTOID) \
@@ -76,8 +79,6 @@ typedef enum CATEGORY
76
79
|| ((a) == TEXTOID && (b) == VARCHAROID) \
77
80
|| ((a) == OIDOID && (b) == INT4OID) \
78
81
|| ((a) == INT4OID && (b) == TIMESTAMPOID) \
79
- || ((a) == DATETIMEOID && (b) == FLOAT8OID) \
80
- || ((a) == FLOAT8OID && (b) == DATETIMEOID) \
81
82
|| ((a) == ABSTIMEOID && (b) == TIMESTAMPOID) \
82
83
|| ((a) == ABSTIMEOID && (b) == INT4OID) \
83
84
|| ((a) == TIMESTAMPOID && (b) == ABSTIMEOID) \