We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e873ec commit bdd83b1Copy full SHA for bdd83b1
src/rum_arr_utils.c
@@ -367,6 +367,8 @@ rum_anyarray_consistent(PG_FUNCTION_ARGS)
367
368
if (intersection > 0)
369
{
370
+ float8 sml;
371
+
372
/* extract array's length from addInfo */
373
for (i = 0; i < nkeys; i++)
374
@@ -382,8 +384,9 @@ rum_anyarray_consistent(PG_FUNCTION_ARGS)
382
384
383
385
INIT_DUMMY_SIMPLE_ARRAY(&sa, nentries);
386
INIT_DUMMY_SIMPLE_ARRAY(&sb, nkeys);
- res = getSimilarity(&sa, &sb, intersection) >=
- RumArraySimilarityThreshold;
387
+ sml = getSimilarity(&sa, &sb, intersection);
388
389
+ res = (sml >= RumArraySimilarityThreshold);
390
}
391
else
392
res = false;
0 commit comments