Skip to content

Commit 3bca9c6

Browse files
committed
Fix some typos in argument and result types in pg_proc
and pg_operator. The lone error in pg_operator was reported as a bug by Michael Reifenberger; the multiple errors in pg_proc would only have been noticed if one invoked the functions by name rather than using operator syntax. I guess few people do that.
1 parent 1c264e6 commit 3bca9c6

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

src/include/catalog/pg_operator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_operator.h,v 1.50 1999/02/28 00:56:40 tgl Exp $
10+
* $Id: pg_operator.h,v 1.51 1999/03/10 05:02:31 tgl Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -614,7 +614,7 @@ DATA(insert OID = 1567 ( "##" PGUID 0 b t f 601 603 600 0 0 0 0 close_s
614614
DATA(insert OID = 1568 ( "##" PGUID 0 b t f 628 603 600 0 0 0 0 close_lb - - ));
615615
DATA(insert OID = 1577 ( "##" PGUID 0 b t f 628 601 600 0 0 0 0 close_ls - - ));
616616
DATA(insert OID = 1578 ( "##" PGUID 0 b t f 601 601 600 0 0 0 0 close_lseg - - ));
617-
DATA(insert OID = 1585 ( "/" PGUID 0 b t f 1186 1186 1186 0 0 0 0 timespan_div - - ));
617+
DATA(insert OID = 1585 ( "/" PGUID 0 b t f 1186 701 1186 0 0 0 0 timespan_div - - ));
618618

619619
DATA(insert OID = 1586 ( "<>" PGUID 0 b t f 601 601 16 1586 1535 0 0 lseg_ne intltsel - ));
620620
DATA(insert OID = 1587 ( "<" PGUID 0 b t f 601 601 16 1589 1590 0 0 lseg_lt intltsel - ));

src/include/catalog/pg_proc.h

Lines changed: 21 additions & 21 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: pg_proc.h,v 1.89 1999/02/13 23:21:12 momjian Exp $
9+
* $Id: pg_proc.h,v 1.90 1999/03/10 05:02:33 tgl Exp $
1010
*
1111
* NOTES
1212
* The script catalog/genbki.sh reads this file and generates .bki
@@ -331,29 +331,29 @@ DATA(insert OID = 156 ( int4mod PGUID 11 f t f 2 f 23 "23 23" 100 0 0 100
331331
DESCR("modulus");
332332
DATA(insert OID = 157 ( textne PGUID 11 f t f 2 f 16 "25 25" 100 0 0 0 foo bar ));
333333
DESCR("not equal");
334-
DATA(insert OID = 158 ( int24eq PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
334+
DATA(insert OID = 158 ( int24eq PGUID 11 f t f 2 f 16 "21 23" 100 0 0 100 foo bar ));
335335
DESCR("equal");
336-
DATA(insert OID = 159 ( int42eq PGUID 11 f t f 2 f 23 "23 21" 100 0 0 100 foo bar ));
336+
DATA(insert OID = 159 ( int42eq PGUID 11 f t f 2 f 16 "23 21" 100 0 0 100 foo bar ));
337337
DESCR("equal");
338-
DATA(insert OID = 160 ( int24lt PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
338+
DATA(insert OID = 160 ( int24lt PGUID 11 f t f 2 f 16 "21 23" 100 0 0 100 foo bar ));
339339
DESCR("less-than");
340-
DATA(insert OID = 161 ( int42lt PGUID 11 f t f 2 f 23 "23 21" 100 0 0 100 foo bar ));
340+
DATA(insert OID = 161 ( int42lt PGUID 11 f t f 2 f 16 "23 21" 100 0 0 100 foo bar ));
341341
DESCR("less-than");
342-
DATA(insert OID = 162 ( int24gt PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
342+
DATA(insert OID = 162 ( int24gt PGUID 11 f t f 2 f 16 "21 23" 100 0 0 100 foo bar ));
343343
DESCR("greater-than");
344-
DATA(insert OID = 163 ( int42gt PGUID 11 f t f 2 f 23 "23 21" 100 0 0 100 foo bar ));
344+
DATA(insert OID = 163 ( int42gt PGUID 11 f t f 2 f 16 "23 21" 100 0 0 100 foo bar ));
345345
DESCR("greater-than");
346-
DATA(insert OID = 164 ( int24ne PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
346+
DATA(insert OID = 164 ( int24ne PGUID 11 f t f 2 f 16 "21 23" 100 0 0 100 foo bar ));
347347
DESCR("not equal");
348-
DATA(insert OID = 165 ( int42ne PGUID 11 f t f 2 f 23 "23 21" 100 0 0 100 foo bar ));
348+
DATA(insert OID = 165 ( int42ne PGUID 11 f t f 2 f 16 "23 21" 100 0 0 100 foo bar ));
349349
DESCR("not equal");
350-
DATA(insert OID = 166 ( int24le PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
350+
DATA(insert OID = 166 ( int24le PGUID 11 f t f 2 f 16 "21 23" 100 0 0 100 foo bar ));
351351
DESCR("less-than-or-equal");
352-
DATA(insert OID = 167 ( int42le PGUID 11 f t f 2 f 23 "23 21" 100 0 0 100 foo bar ));
352+
DATA(insert OID = 167 ( int42le PGUID 11 f t f 2 f 16 "23 21" 100 0 0 100 foo bar ));
353353
DESCR("less-than-or-equal");
354-
DATA(insert OID = 168 ( int24ge PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
354+
DATA(insert OID = 168 ( int24ge PGUID 11 f t f 2 f 16 "21 23" 100 0 0 100 foo bar ));
355355
DESCR("greater-than-or-equal");
356-
DATA(insert OID = 169 ( int42ge PGUID 11 f t f 2 f 23 "23 21" 100 0 0 100 foo bar ));
356+
DATA(insert OID = 169 ( int42ge PGUID 11 f t f 2 f 16 "23 21" 100 0 0 100 foo bar ));
357357
DESCR("greater-than-or-equal");
358358
DATA(insert OID = 170 ( int24mul PGUID 11 f t f 2 f 23 "21 23" 100 0 0 100 foo bar ));
359359
DESCR("multiply");
@@ -893,7 +893,7 @@ DESCR("convert float8 to int8");
893893

894894
/* OIDS 600 - 699 */
895895

896-
DATA(insert OID = 1285 ( int4notin PGUID 11 f t f 2 f 16 "21 0" 100 0 0 100 foo bar ));
896+
DATA(insert OID = 1285 ( int4notin PGUID 11 f t f 2 f 16 "23 0" 100 0 0 100 foo bar ));
897897
DESCR("not in");
898898
DATA(insert OID = 1286 ( oidnotin PGUID 11 f t f 2 f 16 "26 0" 100 0 0 100 foo bar ));
899899
DESCR("not in");
@@ -1096,17 +1096,17 @@ DESCR("matches LIKE expression");
10961096
DATA(insert OID = 851 ( textnlike PGUID 11 f t f 2 f 16 "25 25" 100 0 1 0 foo bar ));
10971097
DESCR("does not match LIKE expression");
10981098

1099-
DATA(insert OID = 852 ( int48eq PGUID 11 f t f 2 f 16 "21 20" 100 0 0 100 foo bar ));
1099+
DATA(insert OID = 852 ( int48eq PGUID 11 f t f 2 f 16 "23 20" 100 0 0 100 foo bar ));
11001100
DESCR("equal");
1101-
DATA(insert OID = 853 ( int48ne PGUID 11 f t f 2 f 16 "21 20" 100 0 0 100 foo bar ));
1101+
DATA(insert OID = 853 ( int48ne PGUID 11 f t f 2 f 16 "23 20" 100 0 0 100 foo bar ));
11021102
DESCR("not equal");
1103-
DATA(insert OID = 854 ( int48lt PGUID 11 f t f 2 f 16 "21 20" 100 0 0 100 foo bar ));
1103+
DATA(insert OID = 854 ( int48lt PGUID 11 f t f 2 f 16 "23 20" 100 0 0 100 foo bar ));
11041104
DESCR("less-than");
1105-
DATA(insert OID = 855 ( int48gt PGUID 11 f t f 2 f 16 "21 20" 100 0 0 100 foo bar ));
1105+
DATA(insert OID = 855 ( int48gt PGUID 11 f t f 2 f 16 "23 20" 100 0 0 100 foo bar ));
11061106
DESCR("greater-than");
1107-
DATA(insert OID = 856 ( int48le PGUID 11 f t f 2 f 16 "21 20" 100 0 0 100 foo bar ));
1107+
DATA(insert OID = 856 ( int48le PGUID 11 f t f 2 f 16 "23 20" 100 0 0 100 foo bar ));
11081108
DESCR("less-than-or-equal");
1109-
DATA(insert OID = 857 ( int48ge PGUID 11 f t f 2 f 16 "21 20" 100 0 0 100 foo bar ));
1109+
DATA(insert OID = 857 ( int48ge PGUID 11 f t f 2 f 16 "23 20" 100 0 0 100 foo bar ));
11101110
DESCR("greater-than-or-equal");
11111111

11121112
DATA(insert OID = 858 ( namelike PGUID 11 f t f 2 f 16 "19 25" 100 0 0 100 foo bar ));
@@ -1861,7 +1861,7 @@ DATA(insert OID = 1474 ( poly_circle PGUID 11 f t f 1 f 718 "604" 100 0 1 0 fo
18611861
DESCR("convert polygon to circle");
18621862
DATA(insert OID = 1475 ( circle_poly PGUID 11 f t f 2 f 604 "23 718" 100 0 1 0 foo bar ));
18631863
DESCR("convert vertex count and circle to polygon");
1864-
DATA(insert OID = 1476 ( dist_pc PGUID 11 f t f 2 f 604 "600 718" 100 0 1 0 foo bar ));
1864+
DATA(insert OID = 1476 ( dist_pc PGUID 11 f t f 2 f 701 "600 718" 100 0 1 0 foo bar ));
18651865
DESCR("distance between");
18661866
DATA(insert OID = 1477 ( circle_contain_pt PGUID 11 f t f 2 f 16 "718 600" 100 0 0 100 foo bar ));
18671867
DESCR("");

src/include/catalog/pg_type.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_type.h,v 1.54 1999/02/13 23:21:15 momjian Exp $
10+
* $Id: pg_type.h,v 1.55 1999/03/10 05:02:34 tgl Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -191,6 +191,8 @@ DESCR("4-byte integer, -2B to 2B");
191191

192192
DATA(insert OID = 24 ( regproc PGUID 4 16 t b t \054 0 0 regprocin regprocout regprocin regprocout i _null_ ));
193193
DESCR("registered procedure");
194+
#define REGPROCOID 24
195+
194196
DATA(insert OID = 25 ( text PGUID -1 -1 f b t \054 0 18 textin textout textin textout i _null_ ));
195197
DESCR("native variable-length string");
196198
#define TEXTOID 25

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