1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-18 17:41:14 +03:00

Fix backend crash in parsing incorrect tsquery.

Per report from Jon Rosebaugh <jon@inklesspen.com>
This commit is contained in:
Teodor Sigaev 2007-02-12 14:19:26 +00:00
parent 7758560fd5
commit bcac5703ec

View File

@ -142,12 +142,14 @@ gettoken_query(QPRS_STATE * state, int4 *val, int4 *lenval, char **strval, int2
{
(state->buf)++;
*val = (int4) '!';
state->state = WAITOPERAND;
return OPR;
}
else if (*(state->buf) == '(')
{
state->count++;
(state->buf)++;
state->state = WAITOPERAND;
return OPEN;
}
else if (*(state->buf) == ':')