From dc4b98475fdb3b4e64cdff5bac6d8796520f50c7 Mon Sep 17 00:00:00 2001 From: teodor Date: Wed, 15 Apr 2009 13:28:47 +0000 Subject: [PATCH] Sync with 8.4beta1 --- wildspeed.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wildspeed.c b/wildspeed.c index 7aa0f96..d0f94ba 100644 --- a/wildspeed.c +++ b/wildspeed.c @@ -384,7 +384,7 @@ gin_extract_wildcard(PG_FUNCTION_ARGS) #endif bool *partialmatch, **ptr_partialmatch = (bool**) PG_GETARG_POINTER(3); - bool *needRecheck = (bool*) ((PG_NARGS() == 5) ? PG_GETARG_POINTER(4) : NULL); + bool *needRecheck = (bool*) ((PG_NARGS() == 6) ? PG_GETARG_POINTER(5) : NULL); Datum *entries = NULL; char *qptr = VARDATA(q); int clen, @@ -615,7 +615,7 @@ gin_consistent_wildcard(PG_FUNCTION_ARGS) bool res = true; int i; PerCallConsistentStorage *pccs = NULL; - bool *recheck = (bool *) PG_GETARG_POINTER(3); + bool *recheck = (bool *) PG_GETARG_POINTER(5); *recheck = true; @@ -635,12 +635,13 @@ gin_consistent_wildcard(PG_FUNCTION_ARGS) pccs->datasz = VARSIZE(query); memcpy( pccs->data, query, pccs->datasz); - DirectFunctionCall5( + DirectFunctionCall6( gin_extract_wildcard, PointerGetDatum(query), PointerGetDatum( &pccs->nentries ), /* &nentries */ PG_GETARG_DATUM(1), /* strategy */ PointerGetDatum( &pmatch ), + PointerGetDatum(NULL), PointerGetDatum( &pccs->needRecheck ) ); -- 2.46.1