1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-29 16:21:20 +03:00

Remove pos comparison in silly_cmp_tsvector(): it is not a semantically significant

This commit is contained in:
Teodor Sigaev 2006-08-29 13:40:11 +00:00
parent a3cb2221f3
commit 3538b740f3

View File

@ -971,8 +971,6 @@ silly_cmp_tsvector(const tsvector * a, const tsvector * b)
for(i=0;i<a->size;i++) {
if ( aptr->haspos != bptr->haspos ) {
return ( aptr->haspos > bptr->haspos ) ? -1 : 1;
} else if ( aptr->pos != bptr->pos ) {
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, bptr->len))!= 0 ) {