Skip to content

Commit 9bc57c6

Browse files
committed
From: Darren King <darrenk@insightdist.com>
Patch1: Postgres thinks dist_pl (dist of a point to a line) is expecting a box (603) for the right arg, but it really should be a line (628). Otherwise the left & right args match those of dist_pb (dist of a point to a box) two lines further down. Patch2: Anyways, these two functions take a path (602) whereas in pg_proc.h they are listed as taking a lseg (601).
1 parent d45dfd0 commit 9bc57c6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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.26 1998/03/01 08:10:34 thomas Exp $
10+
* $Id: pg_operator.h,v 1.27 1998/03/02 06:12:10 scrappy Exp $
1111
*
1212
* NOTES
1313
* the genbki.sh script reads this file and generates .bki
@@ -284,7 +284,7 @@ DATA(insert OID = 610 ( ">" PGUID 0 b t f 26 26 16 609 611 0 0 int4gt i
284284
DATA(insert OID = 611 ( "<=" PGUID 0 b t f 26 26 16 612 610 0 0 int4le intltsel intltjoinsel ));
285285
DATA(insert OID = 612 ( ">=" PGUID 0 b t f 26 26 16 611 609 0 0 int4ge intgtsel intgtjoinsel ));
286286

287-
DATA(insert OID = 613 ( "<->" PGUID 0 b t f 600 603 701 0 0 0 0 dist_pl - - ));
287+
DATA(insert OID = 613 ( "<->" PGUID 0 b t f 600 628 701 0 0 0 0 dist_pl - - ));
288288
DATA(insert OID = 614 ( "<->" PGUID 0 b t f 600 601 701 0 0 0 0 dist_ps - - ));
289289
DATA(insert OID = 615 ( "<->" PGUID 0 b t f 600 603 701 0 0 0 0 dist_pb - - ));
290290
DATA(insert OID = 616 ( "<->" PGUID 0 b t f 601 628 701 0 0 0 0 dist_sl - - ));

src/include/catalog/pg_proc.h

Lines changed: 3 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: pg_proc.h,v 1.47 1998/02/26 04:40:59 momjian Exp $
9+
* $Id: pg_proc.h,v 1.48 1998/03/02 06:12:15 scrappy Exp $
1010
*
1111
* NOTES
1212
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1804,9 +1804,9 @@ DATA(insert OID = 1424 ( box_mul PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100
18041804
DESCR("multiply box by point (scale)");
18051805
DATA(insert OID = 1425 ( box_div PGUID 11 f t f 2 f 603 "603 600" 100 0 0 100 foo bar ));
18061806
DESCR("divide box by point (scale)");
1807-
DATA(insert OID = 1426 ( path_contain_pt PGUID 11 f t f 2 f 16 "601 600" 100 0 0 100 foo bar ));
1807+
DATA(insert OID = 1426 ( path_contain_pt PGUID 11 f t f 2 f 16 "602 600" 100 0 0 100 foo bar ));
18081808
DESCR("path contains point?");
1809-
DATA(insert OID = 1427 ( pt_contained_path PGUID 11 f t f 2 f 16 "600 601" 100 0 0 100 foo bar ));
1809+
DATA(insert OID = 1427 ( pt_contained_path PGUID 11 f t f 2 f 16 "600 602" 100 0 0 100 foo bar ));
18101810
DESCR("point contained in path?");
18111811
DATA(insert OID = 1428 ( poly_contain_pt PGUID 11 f t f 2 f 16 "604 600" 100 0 0 100 foo bar ));
18121812
DESCR("polygon contains point?");

0 commit comments

Comments
 (0)