]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add native BOOLEAN type support for Oracle 23c and later versions
authorYeongbae Jeon <ybjeon01@naver.com>
Sun, 23 Nov 2025 11:44:43 +0000 (06:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Dec 2025 13:25:33 +0000 (08:25 -0500)
commit6baf3b9fb2e1353101b91ed6968d6aece6d95e0b
treed7048d591c08810550dce2975ba9ed0e046cebd7
parent259636fabb81289fb01fb3322638544a06cf3222
Add native BOOLEAN type support for Oracle 23c and later versions

Added support for native BOOLEAN support in Oracle Database 23c and above.
The Oracle dialect now renders ``BOOLEAN`` automatically when
:class:`.Boolean` is used in DDL, and also now supports direct use of the
:class:`.BOOLEAN` datatype, when 23c and above is in use.  For Oracle
versions prior to 23c, boolean values continue to be emulated using
SMALLINT as before.   Special case handling is also present to ensure a
SMALLINT that's interpreted with the :class:`.Boolean` datatype on Oracle
Database 23c and above continues to return bool values. Pull request
courtesy Yeongbae Jeon.

Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Fixes: #11633
Closes: #13000
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13000
Pull-request-sha: 65b8a2c92f539c57ab6b0b1bf045bd23eedb1695

Change-Id: I13be32f6bad5d918f6c7c9622f0deae78f5c6551
doc/build/changelog/unreleased_21/11633.rst [new file with mode: 0644]
doc/build/dialects/oracle.rst
lib/sqlalchemy/dialects/oracle/__init__.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
lib/sqlalchemy/dialects/oracle/types.py
test/dialect/oracle/test_dialect.py
test/dialect/oracle/test_reflection.py
test/dialect/oracle/test_types.py