mirror of
https://github.com/postgres/postgres.git
synced 2026-02-14 16:23:59 -05:00
Fix indefinit loop in rank_cd for some corner queries.
Per Daniele Varrazzo <piro@develer.com> bug report.
This commit is contained in:
parent
7cee08efee
commit
eb22ca6f9f
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ Cover(DocRepresentation * doc, int len, QUERYTYPE * query, Extention * ext)
|
|||
ptr = doc + lastpos;
|
||||
|
||||
/* find lower bound of cover from founded upper bound, move down */
|
||||
while (ptr >= doc)
|
||||
while (ptr >= doc + ext->pos)
|
||||
{
|
||||
for (i = 0; i < ptr->nitem; i++)
|
||||
ptr->item[i]->istrue = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue