Skip to content

Commit eaffea7

Browse files
author
Artur Zakirov
committed
Fix bug: 'inconsistent results for queries against a table with and without rum indexes'
1 parent 060ebdc commit eaffea7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rum_ts_utils.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ rum_tsquery_pre_consistent(PG_FUNCTION_ARGS)
149149

150150
res = TS_execute(GETQUERY(query),
151151
&gcv,
152-
false,
152+
TS_EXEC_PHRASE_AS_AND,
153153
pre_checkcondition_rum);
154154
}
155155

@@ -242,7 +242,9 @@ rum_tsquery_consistent(PG_FUNCTION_ARGS)
242242
gcv.addInfoIsNull = addInfoIsNull;
243243
gcv.notPhrase = false;
244244

245-
res = TS_execute(GETQUERY(query), &gcv, true, checkcondition_rum);
245+
res = TS_execute(GETQUERY(query), &gcv,
246+
TS_EXEC_CALC_NOT,
247+
checkcondition_rum);
246248
}
247249

248250
PG_RETURN_BOOL(res);

0 commit comments

Comments
 (0)