Skip to content

Commit c569f2a

Browse files
author
Thomas G. Lockhart
committed
Remove equivalence between datetime and float8. Wasn't worth the trouble
especially since datetime has too many reserved values to be a reasonable mapping.
1 parent 2a6faa5 commit c569f2a

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.7.2.1 1999/02/13 06:00:52 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy