From 729ec8ba271a856d4ae18706868db6648ca1eb2f Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 2 Jun 2004 22:43:54 +0000 Subject: [PATCH] handled special case of Inf boxes as GiST keys in picksplit git-svn-id: http://svn.osgeo.org/postgis/trunk@565 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis_gist_72.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/postgis_gist_72.c b/postgis_gist_72.c index 5f61b1c0d..a399dd3a0 100644 --- a/postgis_gist_72.c +++ b/postgis_gist_72.c @@ -11,6 +11,9 @@ * ********************************************************************** * $Log$ + * Revision 1.12 2004/06/02 22:43:54 strk + * handled special case of Inf boxes as GiST keys in picksplit + * * Revision 1.11 2004/04/28 22:26:02 pramsey * Fixed spelling mistake in header text. * @@ -555,8 +558,12 @@ gbox_picksplit(PG_FUNCTION_ARGS) ADDLIST(listT, unionT, posT,arr[i-1].pos); else ADDLIST(listB, unionB, posB,arr[i-1].pos); - } else - ADDLIST(listT, unionT, posT,arr[i-1].pos); + } else { + if ( posB>posT ) + ADDLIST(listT, unionT, posT,arr[i-1].pos); + else + ADDLIST(listB, unionB, posB,arr[i-1].pos); + } } pfree(arr); } -- 2.40.0