mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
Remove pos comparison in silly_cmp_tsvector(): it is not a semantically significant
This commit is contained in:
parent
9711782628
commit
3a214ab0f1
@ -975,8 +975,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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user