Skip to content

Commit f8f0efb

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

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