]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed compilation of bitwise operators on oracle and sqlite.
authorFederico Caselli <cfederico87@gmail.com>
Mon, 29 Jul 2024 21:52:04 +0000 (23:52 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Aug 2024 13:15:41 +0000 (09:15 -0400)
commit72c9889a9cc8019bb95419c62969ebc7897f3ba5
tree79454e5569a196ea659903eab8a5778bc79e36f0
parent79e3e7b50361bb4d88452e0139c2431a4e031a9a
Fixed compilation of bitwise operators on oracle and sqlite.

Implemented bitwise operators for Oracle which was previously
non-functional due to a non-standard syntax used by this database.
Oracle's support for bitwise "or" and "xor" starts with server version 21.
Additionally repaired the implementation of "xor" for SQLite.

As part of this change, the dialect compliance test suite has been enhanced
to include support for server-side bitwise tests; third party dialect
authors should refer to new "supports_bitwise" methods in the
requirements.py file to enable these tests.

Fixes: #11663
Change-Id: I41040bd67992b6c89ed3592edca8965d5d59be9e
(cherry picked from commit ce60f93a68f312c7401802820dd17f5d91f73a2c)
doc/build/changelog/unreleased_20/11663.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_select.py
test/requirements.py