mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 22:59:54 -04:00
Repair prehistoric logic error in lseg_eq and lseg_ne.
This commit is contained in:
parent
0a013c843b
commit
851a4c48fd
1 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.71 2002/11/13 00:39:47 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.72 2002/11/29 19:25:33 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -1932,8 +1932,8 @@ lseg_eq(PG_FUNCTION_ARGS)
|
|||
LSEG *l2 = PG_GETARG_LSEG_P(1);
|
||||
|
||||
PG_RETURN_BOOL(FPeq(l1->p[0].x, l2->p[0].x) &&
|
||||
FPeq(l1->p[1].y, l2->p[1].y) &&
|
||||
FPeq(l1->p[0].x, l2->p[0].x) &&
|
||||
FPeq(l1->p[0].y, l2->p[0].y) &&
|
||||
FPeq(l1->p[1].x, l2->p[1].x) &&
|
||||
FPeq(l1->p[1].y, l2->p[1].y));
|
||||
}
|
||||
|
||||
|
|
@ -1944,8 +1944,8 @@ lseg_ne(PG_FUNCTION_ARGS)
|
|||
LSEG *l2 = PG_GETARG_LSEG_P(1);
|
||||
|
||||
PG_RETURN_BOOL(!FPeq(l1->p[0].x, l2->p[0].x) ||
|
||||
!FPeq(l1->p[1].y, l2->p[1].y) ||
|
||||
!FPeq(l1->p[0].x, l2->p[0].x) ||
|
||||
!FPeq(l1->p[0].y, l2->p[0].y) ||
|
||||
!FPeq(l1->p[1].x, l2->p[1].x) ||
|
||||
!FPeq(l1->p[1].y, l2->p[1].y));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue