Commit 4bbc1a7e authored by Teodor Sigaev's avatar Teodor Sigaev

Fix crash of filter(tsvector)

Variable storing a position of lexeme, had a wrong type: char, it's
obviously not enough to store 2^14 possible positions.

Stas Kelvich
parent a7124870
......@@ -773,8 +773,8 @@ tsvector_filter(PG_FUNCTION_ARGS)
bool *nulls;
int nweigths;
int i, j;
char mask = 0,
cur_pos = 0;
int cur_pos = 0;
char mask = 0;
deconstruct_array(weights, CHAROID, 1, true, 'c',
&dweights, &nulls, &nweigths);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment