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

Commitf8f0efb

Browse files
committed
Make type 'regproc' binary-compatible with int4 and oid,
so that it has some SQL operators available. It's difficult to writeautomated tests of a data type that you haven't even got == for...
1 parent3bca9c6 commitf8f0efb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/include/parser/parse_coerce.h

Lines changed: 6 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.8 1999/02/13 05:25:54 thomas Exp $
9+
* $Id: parse_coerce.h,v 1.9 1999/03/10 05:05:58 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -78,12 +78,15 @@ typedef enum CATEGORY
7878
|| ((a) == TEXTOID && (b) == BPCHAROID) \
7979
|| ((a) == TEXTOID && (b) == VARCHAROID) \
8080
|| ((a) == OIDOID && (b) == INT4OID) \
81-
|| ((a) == INT4OID && (b) == TIMESTAMPOID) \
81+
|| ((a) == OIDOID && (b) == REGPROCOID) \
82+
|| ((a) == INT4OID && (b) == OIDOID) \
83+
|| ((a) == INT4OID && (b) == REGPROCOID) \
84+
|| ((a) == REGPROCOID && (b) == OIDOID) \
85+
|| ((a) == REGPROCOID && (b) == INT4OID) \
8286
|| ((a) == ABSTIMEOID && (b) == TIMESTAMPOID) \
8387
|| ((a) == ABSTIMEOID && (b) == INT4OID) \
8488
|| ((a) == TIMESTAMPOID && (b) == ABSTIMEOID) \
8589
|| ((a) == TIMESTAMPOID && (b) == INT4OID) \
86-
|| ((a) == INT4OID && (b) == OIDOID) \
8790
|| ((a) == INT4OID && (b) == ABSTIMEOID) \
8891
|| ((a) == INT4OID && (b) == TIMESTAMPOID) \
8992
|| ((a) == RELTIMEOID && (b) == INT4OID) \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp