1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Fix incorrect length of lexemes in silly_cmp_tsvector()

This commit is contained in:
Teodor Sigaev
2006-08-29 13:32:21 +00:00
parent 747b82aa6a
commit a3cb2221f3

View File

@ -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, bptr->len))!= 0 ) {
return res;
} else if ( aptr->haspos ) {
WordEntryPos *ap = POSDATAPTR(a, aptr);