mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Fix 'recheck' flag in tsquery's GIN tri-consistent function.
It needs to be initialized, like in the boolean gin_tsquery_consistent version. Peter Geoghegan.
This commit is contained in:
@@ -308,6 +308,8 @@ gin_tsquery_triconsistent(PG_FUNCTION_ARGS)
|
|||||||
bool recheck;
|
bool recheck;
|
||||||
|
|
||||||
/* The query requires recheck only if it involves weights */
|
/* The query requires recheck only if it involves weights */
|
||||||
|
recheck = false;
|
||||||
|
|
||||||
if (query->size > 0)
|
if (query->size > 0)
|
||||||
{
|
{
|
||||||
QueryItem *item;
|
QueryItem *item;
|
||||||
|
Reference in New Issue
Block a user