]> 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:14:30 +0000 (09:14 -0400)
commitce60f93a68f312c7401802820dd17f5d91f73a2c
treec77a41e0eb2d877ed979ecb5da5665a25e7dc349
parent1442a71916381ff8f6bbedb33d9e61938eb84778
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
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