projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
747b82a
)
Fix incorrect length of lexemes in silly_cmp_tsvector()
author
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 29 Aug 2006 13:32:21 +0000
(13:32 +0000)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 29 Aug 2006 13:32:21 +0000
(13:32 +0000)
contrib/tsearch2/tsvector.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/tsearch2/tsvector.c
b/contrib/tsearch2/tsvector.c
index 56752cf4d1726a0a6a9bcd604f491ae3c3faf06d..c455ac3ec54e17eb526c5b763d68f667542434bb 100644
(file)
--- a/
contrib/tsearch2/tsvector.c
+++ b/
contrib/tsearch2/tsvector.c
@@
-975,7
+975,7
@@
silly_cmp_tsvector(const tsvector * a, const tsvector * b)
return ( aptr->pos > bptr->pos ) ? -1 : 1;
} else if ( aptr->len != bptr->len ) {
return ( aptr->len > bptr->len ) ? -1 : 1;
- } else if ( (res=strncmp(STRPTR(a) + aptr->pos, STRPTR(b) + bptr->pos, b->len))!= 0 ) {
+ } else if ( (res=strncmp(STRPTR(a) + aptr->pos, STRPTR(b) + bptr->pos, b
ptr
->len))!= 0 ) {
return res;
} else if ( aptr->haspos ) {
WordEntryPos *ap = POSDATAPTR(a, aptr);