diff options
Diffstat (limited to 'contrib/tsearch2/query.c')
-rw-r--r-- | contrib/tsearch2/query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/query.c b/contrib/tsearch2/query.c index c86169874cb..8d313e16493 100644 --- a/contrib/tsearch2/query.c +++ b/contrib/tsearch2/query.c @@ -396,8 +396,8 @@ makepol(QPRS_STATE * state, void (*pushval) (QPRS_STATE *, int, char *, int, int case OPEN: if (makepol(state, pushval) == ERR) return ERR; - if (lenstack && (stack[lenstack - 1] == (int4) '&' || - stack[lenstack - 1] == (int4) '!')) + while (lenstack && (stack[lenstack - 1] == (int4) '&' || + stack[lenstack - 1] == (int4) '!')) { lenstack--; pushquery(state, OPR, stack[lenstack], 0, 0, 0); |