diff options
author | Thomas G. Lockhart | 1999-02-13 06:00:52 +0000 |
---|---|---|
committer | Thomas G. Lockhart | 1999-02-13 06:00:52 +0000 |
commit | c569f2a068a7e102c7a1bf5f32cbf2151cbf26ef (patch) | |
tree | b41c40a5f1f1b558a31e0e838cd6211188338d61 | |
parent | 2a6faa5368f927e0cc22334ad35393351fec8ede (diff) |
Remove equivalence between datetime and float8. Wasn't worth the trouble
especially since datetime has too many reserved values to be a
reasonable mapping.
-rw-r--r-- | src/include/parser/parse_coerce.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index 49c79d215c0..c71706d4472 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.7 1998/10/22 13:51:05 momjian Exp $ + * $Id: parse_coerce.h,v 1.7.2.1 1999/02/13 06:00:52 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -66,6 +66,9 @@ typedef enum CATEGORY * Check for types with the same underlying binary representation. * This allows us to cheat and directly exchange values without * going through the trouble of calling a conversion function. + * Remove equivalencing of FLOAT8 and DATETIME. They really are not + * close enough in behavior, with the DATETIME reserved values + * and special formatting. - thomas 1999-01-24 */ #define IS_BINARY_COMPATIBLE(a,b) \ (((a) == BPCHAROID && (b) == TEXTOID) \ @@ -76,8 +79,6 @@ typedef enum CATEGORY || ((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) \ |