projects
/
users
/
heikki
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cee08e
)
Fix indefinit loop in rank_cd for some corner queries.
author
Teodor Sigaev
<teodor@sigaev.ru>
Fri, 7 Sep 2007 16:26:59 +0000
(16:26 +0000)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Fri, 7 Sep 2007 16:26:59 +0000
(16:26 +0000)
Per Daniele Varrazzo <piro@develer.com> bug report.
contrib/tsearch2/rank.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/rank.c
b/contrib/tsearch2/rank.c
index f5de5c7746f90bb823736ed058b1d859d0cbb2d2..5cfeaa38e294ad0f135b07e29a7e60d143692527 100644
(file)
--- a/
contrib/tsearch2/rank.c
+++ b/
contrib/tsearch2/rank.c
@@
-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;