aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/tsearch2/query.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c
index 0a1805e0e75..16f20b23b5d 100644
--- a/contrib/tsearch2/query.c
+++ b/contrib/tsearch2/query.c
@@ -144,12 +144,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) == ':')