mirror of
https://github.com/postgres/postgres.git
synced 2026-06-15 03:30:26 -04:00
Fix incorrect length of lexemes in silly_cmp_tsvector()
This commit is contained in:
parent
747b82aa6a
commit
a3cb2221f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue