Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc569f2a

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 parent2a6faa5 commitc569f2a

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
#defineIS_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)

[8]ページ先頭

©2009-2025 Movatter.jp