mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fixes about word with several infiniteve
This commit is contained in:
parent
9ea738827c
commit
baeab89de6
@ -278,7 +278,7 @@ pushval_morph(QPRS_STATE * state, int typeval, char *strval, int lenval, int2 we
|
|||||||
pushval_asis(state, VAL, prs.words[count].word, prs.words[count].len, weight);
|
pushval_asis(state, VAL, prs.words[count].word, prs.words[count].len, weight);
|
||||||
pfree(prs.words[count].word);
|
pfree(prs.words[count].word);
|
||||||
if (count)
|
if (count)
|
||||||
pushquery(state, OPR, (int4) '&', 0, 0, 0);
|
pushquery(state, OPR, (int4) '|', 0, 0, 0);
|
||||||
}
|
}
|
||||||
pfree(prs.words);
|
pfree(prs.words);
|
||||||
|
|
||||||
|
@ -635,10 +635,12 @@ uniqueWORD(WORD * a, int4 l)
|
|||||||
res->alen *= 2;
|
res->alen *= 2;
|
||||||
res->pos.apos = (uint16 *) repalloc(res->pos.apos, sizeof(uint16) * res->alen);
|
res->pos.apos = (uint16 *) repalloc(res->pos.apos, sizeof(uint16) * res->alen);
|
||||||
}
|
}
|
||||||
|
if ( res->pos.apos[0]==0 || res->pos.apos[res->pos.apos[0]] != LIMITPOS(ptr->pos.pos) ) {
|
||||||
res->pos.apos[res->pos.apos[0] + 1] = LIMITPOS(ptr->pos.pos);
|
res->pos.apos[res->pos.apos[0] + 1] = LIMITPOS(ptr->pos.pos);
|
||||||
res->pos.apos[0]++;
|
res->pos.apos[0]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user