]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add "eager_parenthesis" late-compilation rule, use w/ PG JSON/HSTORE
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Sep 2016 14:09:56 +0000 (10:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Oct 2016 13:46:11 +0000 (09:46 -0400)
commit333414fe94941a6a58e7d8e45042548eb2d58119
treed4e82336605dbfbeda0afb5735b3c56449db9b56
parent9bfd0289383bfcaf650fe516862df545dcf95c2e
Add "eager_parenthesis" late-compilation rule, use w/ PG JSON/HSTORE

Added compiler-level flags used by Postgresql to place additional
parenthesis than would normally be generated by precedence rules
around operations involving JSON, HSTORE indexing operators as well as
within their operands since it has been observed that Postgresql's
precedence rules for at least the HSTORE indexing operator is not
consistent between 9.4 and 9.5.

Fixes: #3806
Change-Id: I5899677b330595264543b055abd54f3c76bfabf2
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/hstore.py
lib/sqlalchemy/dialects/postgresql/json.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/operators.py
test/dialect/postgresql/test_types.py
test/sql/test_operators.py