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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix erroneous parsing of tsquery input "... & !(subexpression) |
Дата
Msg-id E1PUNNl-00011B-Pj@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
master

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

Modified Files
--------------
contrib/intarray/_int_bool.c    |    4 ++--
contrib/ltree/ltxtquery_io.c    |    4 ++--
src/backend/utils/adt/tsquery.c |    4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix erroneous parsing of tsquery input "... & !(subexpression) |
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix up handling of simple-form CASE with constant test expressio