From: Bruce Momjian Date: Tue, 31 Mar 2015 14:26:45 +0000 (-0400) Subject: btree_gin: properly call DirectFunctionCall1() X-Git-Tag: REL9_5_ALPHA1~522 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cf16b44cb749cac2ff9dcbbe92bfb94f72bb0d0;p=thirdparty%2Fpostgresql.git btree_gin: properly call DirectFunctionCall1() Previously we called DirectFunctionCall3() with dummy arguments. Fixed version of previous patch. Report by Jon Nelson --- diff --git a/contrib/btree_gin/btree_gin.c b/contrib/btree_gin/btree_gin.c index 80521fbb7bb..1a5bb3cdc65 100644 --- a/contrib/btree_gin/btree_gin.c +++ b/contrib/btree_gin/btree_gin.c @@ -318,10 +318,7 @@ GIN_SUPPORT(macaddr, false, leftmostvalue_macaddr, macaddr_cmp) static Datum leftmostvalue_inet(void) { - return DirectFunctionCall3(inet_in, - CStringGetDatum("0.0.0.0/0"), - ObjectIdGetDatum(0), - Int32GetDatum(-1)); + return DirectFunctionCall1(inet_in, CStringGetDatum("0.0.0.0/0")); } GIN_SUPPORT(inet, true, leftmostvalue_inet, network_cmp)