diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-03-10 05:05:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-03-10 05:05:58 +0000 |
commit | f8f0efb43d764426265ed3bed6e3de792619ec2b (patch) | |
tree | ee319933d90a09657ad8233b8dc6bb506d418f59 /src | |
parent | 3bca9c6c4b0ace2d749e01a94191ea250a3e4c47 (diff) | |
download | postgresql-f8f0efb43d764426265ed3bed6e3de792619ec2b.tar.gz postgresql-f8f0efb43d764426265ed3bed6e3de792619ec2b.zip |
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...
Diffstat (limited to 'src')
-rw-r--r-- | src/include/parser/parse_coerce.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index b7d92711653..72e582550a2 100644 --- a/src/include/parser/parse_coerce.h +++ b/src/include/parser/parse_coerce.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_coerce.h,v 1.8 1999/02/13 05:25:54 thomas Exp $ + * $Id: parse_coerce.h,v 1.9 1999/03/10 05:05:58 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -78,12 +78,15 @@ typedef enum CATEGORY || ((a) == TEXTOID && (b) == BPCHAROID) \ || ((a) == TEXTOID && (b) == VARCHAROID) \ || ((a) == OIDOID && (b) == INT4OID) \ - || ((a) == INT4OID && (b) == TIMESTAMPOID) \ + || ((a) == OIDOID && (b) == REGPROCOID) \ + || ((a) == INT4OID && (b) == OIDOID) \ + || ((a) == INT4OID && (b) == REGPROCOID) \ + || ((a) == REGPROCOID && (b) == OIDOID) \ + || ((a) == REGPROCOID && (b) == INT4OID) \ || ((a) == ABSTIMEOID && (b) == TIMESTAMPOID) \ || ((a) == ABSTIMEOID && (b) == INT4OID) \ || ((a) == TIMESTAMPOID && (b) == ABSTIMEOID) \ || ((a) == TIMESTAMPOID && (b) == INT4OID) \ - || ((a) == INT4OID && (b) == OIDOID) \ || ((a) == INT4OID && (b) == ABSTIMEOID) \ || ((a) == INT4OID && (b) == TIMESTAMPOID) \ || ((a) == RELTIMEOID && (b) == INT4OID) \ |