Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ba71b81

Browse files
author
Thomas G. Lockhart
committed
Remove equivalence between datetime and float8. Led to nothin' but trouble.
1 parent a97683b commit ba71b81

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/include/parser/parse_coerce.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parse_coerce.h,v 1.7 1998/10/22 13:51:05 momjian Exp $
9+
* $Id: parse_coerce.h,v 1.8 1999/02/13 05:25:54 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -66,6 +66,9 @@ typedef enum CATEGORY
6666
* Check for types with the same underlying binary representation.
6767
* This allows us to cheat and directly exchange values without
6868
* 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
6972
*/
7073
#define IS_BINARY_COMPATIBLE(a,b) \
7174
(((a) == BPCHAROID && (b) == TEXTOID) \
@@ -76,8 +79,6 @@ typedef enum CATEGORY
7679
|| ((a) == TEXTOID && (b) == VARCHAROID) \
7780
|| ((a) == OIDOID && (b) == INT4OID) \
7881
|| ((a) == INT4OID && (b) == TIMESTAMPOID) \
79-
|| ((a) == DATETIMEOID && (b) == FLOAT8OID) \
80-
|| ((a) == FLOAT8OID && (b) == DATETIMEOID) \
8182
|| ((a) == ABSTIMEOID && (b) == TIMESTAMPOID) \
8283
|| ((a) == ABSTIMEOID && (b) == INT4OID) \
8384
|| ((a) == TIMESTAMPOID && (b) == ABSTIMEOID) \

0 commit comments

Comments
 (0)