pgsql: Fix erroneous parsing of tsquery input "... & !(subexpression) | - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix erroneous parsing of tsquery input "... & !(subexpression) |
Date
Msg-id E1PUNNl-00011G-VE@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix erroneous parsing of tsquery input "... & !(subexpression) | ..."

After parsing a parenthesized subexpression, we must pop all pending
ANDs and NOTs off the stack, just like the case for a simple operand.
Per bug #5793.

Also fix clones of this routine in contrib/intarray and contrib/ltree,
where input of types query_int and ltxtquery had the same problem.

Back-patch to all supported versions.

Branch
------
REL8_2_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=b053c532489a3fa1e01b196c15a0f14138ee9c3a

Modified Files
--------------
contrib/intarray/_int_bool.c |    4 ++--
contrib/ltree/ltxtquery_io.c |    4 ++--
contrib/tsearch2/query.c     |    4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix erroneous parsing of tsquery input "... & !(subexpression) |
Next
From: Tom Lane
Date:
Subject: pgsql: Fix erroneous parsing of tsquery input "... & !(subexpression) |