mirror of
https://github.com/postgres/postgres.git
synced 2026-04-24 07:40:59 -04:00
Remove pos comparison in silly_cmp_tsvector(): it is not a semantically significant
This commit is contained in:
parent
9711782628
commit
3a214ab0f1
1 changed files with 0 additions and 2 deletions
|
|
@ -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 a new issue