git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cda6d0a)
Fix incorrect length of lexemes in silly_cmp_tsvector()
2006年8月29日 13:31:54 +0000 (13:31 +0000)
2006年8月29日 13:31:54 +0000 (13:31 +0000)

diff --git a/contrib/tsearch2/tsvector.c b/contrib/tsearch2/tsvector.c
index a52da49f0c98117f7183e3fd88a8271995805c14..daef6654002df985510c9535c41ffad606b40cb3 100644 (file)
--- a/contrib/tsearch2/tsvector.c
+++ b/contrib/tsearch2/tsvector.c
@@ -979,7 +979,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, bptr->len))!= 0 ) {
return res;
} else if ( aptr->haspos ) {
WordEntryPos *ap = POSDATAPTR(a, aptr);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /