mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-03 08:00:21 +08:00
Fix backend crash in parsing incorrect tsquery.
Per report from Jon Rosebaugh <jon@inklesspen.com>
This commit is contained in:
parent
36149aac15
commit
0652254108
@ -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) == ':')
|
||||
|
Loading…
Reference in New Issue
Block a user