diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-08-15 17:11:14 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-08-15 17:15:24 -0400 |
| commit | 462ccd9ff18d2e428b20ec3f596391a275472140 (patch) | |
| tree | 45367cbdecf3f3d7928d43dcf556a9703bc55a4a /doc | |
| parent | dfa47b454a1d873b5746263f638d757c70edd3e1 (diff) | |
| download | sqlalchemy-462ccd9ff18d2e428b20ec3f596391a275472140.tar.gz | |
Add concept of "implicit boolean", treat as native
Fixed issue that is closely related to :ticket:`3639` where an expression
rendered in a boolean context on a non-native boolean backend would
be compared to 1/0 even though it is already an implcitly boolean
expression, when :meth:`.ColumnElement.self_group` were used. While this
does not affect the user-friendly backends (MySQL, SQLite) it was not
handled by Oracle (and possibly SQL Server). Whether or not the
expression is implicitly boolean on any database is now determined
up front as an additional check to not generate the integer comparison
within the compliation of the statement.
Fixes: #4320
Change-Id: Iae0a65e5c01bd576e64733c3651e1e1a1a1b240c
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/changelog/unreleased_12/4320.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_12/4320.rst b/doc/build/changelog/unreleased_12/4320.rst new file mode 100644 index 000000000..b00a914dd --- /dev/null +++ b/doc/build/changelog/unreleased_12/4320.rst @@ -0,0 +1,13 @@ +.. change:: + :tags: bug, sql + :tickets: 4320 + + Fixed issue that is closely related to :ticket:`3639` where an expression + rendered in a boolean context on a non-native boolean backend would + be compared to 1/0 even though it is already an implcitly boolean + expression, when :meth:`.ColumnElement.self_group` were used. While this + does not affect the user-friendly backends (MySQL, SQLite) it was not + handled by Oracle (and possibly SQL Server). Whether or not the + expression is implicitly boolean on any database is now determined + up front as an additional check to not generate the integer comparison + within the compliation of the statement. |
