From: Alexander Korotkov Date: Thu, 27 Sep 2018 20:25:22 +0000 (+0300) Subject: Remove extra usage of BoxPGetDatum() macro X-Git-Tag: REL_12_BETA1~1487 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f6459589494a4b4ff6c707594f8d308b9da88f8;p=thirdparty%2Fpostgresql.git Remove extra usage of BoxPGetDatum() macro Author: Mark Dilger Discussion: https://postgr.es/m/B2AEFCD0-836D-4654-9D59-3DF616E0A6F3%40gmail.com --- diff --git a/src/backend/access/spgist/spgquadtreeproc.c b/src/backend/access/spgist/spgquadtreeproc.c index dee438a307d..90cc7768994 100644 --- a/src/backend/access/spgist/spgquadtreeproc.c +++ b/src/backend/access/spgist/spgquadtreeproc.c @@ -465,8 +465,7 @@ spg_quad_leaf_consistent(PG_FUNCTION_ARGS) if (res && in->norderbys > 0) /* ok, it passes -> let's compute the distances */ - out->distances = spg_key_orderbys_distances( - BoxPGetDatum(in->leafDatum), true, + out->distances = spg_key_orderbys_distances(in->leafDatum, true, in->orderbys, in->norderbys); PG_RETURN_BOOL(res);