summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-09-05 16:44:42 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-09-05 16:44:42 -0400
commit7b766591b05ceeb9c47588d6326a6be56a230594 (patch)
treefe0e35edbf3332a1c43428add875691d3b86ab4b /doc
parent583287259fbb6d143696b418756ed68e6110cd2d (diff)
downloadsqlalchemy-7b766591b05ceeb9c47588d6326a6be56a230594.tar.gz
- MySQL boolean symbols "true", "false" work again. 0.9's change
in :ticket:`2682` disallowed the MySQL dialect from making use of the "true" and "false" symbols in the context of "IS" / "IS NOT", but MySQL supports this syntax even though it has no boolean type. MySQL remains "non native boolean", but the :func:`.true` and :func:`.false` symbols again produce the keywords "true" and "false", so that an expression like ``column.is_(true())`` again works on MySQL. fixes #3186
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/changelog_10.rst17
-rw-r--r--doc/build/changelog/migration_10.rst19
2 files changed, 36 insertions, 0 deletions
diff --git a/doc/build/changelog/changelog_10.rst b/doc/build/changelog/changelog_10.rst
index e9b78fe78..55a275659 100644
--- a/doc/build/changelog/changelog_10.rst
+++ b/doc/build/changelog/changelog_10.rst
@@ -22,6 +22,23 @@
on compatibility concerns, see :doc:`/changelog/migration_10`.
.. change::
+ :tags: bug, mysql
+ :tickets: 3186
+
+ MySQL boolean symbols "true", "false" work again. 0.9's change
+ in :ticket:`2682` disallowed the MySQL dialect from making use of the
+ "true" and "false" symbols in the context of "IS" / "IS NOT", but
+ MySQL supports this syntax even though it has no boolean type.
+ MySQL remains "non native boolean", but the :func:`.true`
+ and :func:`.false` symbols again produce the
+ keywords "true" and "false", so that an expression like
+ ``column.is_(true())`` again works on MySQL.
+
+ .. seealso::
+
+ :ref:`bug_3186`
+
+ .. change::
:tags: changed, mssql
:tickets: 3182
diff --git a/doc/build/changelog/migration_10.rst b/doc/build/changelog/migration_10.rst
index 58aa42df0..2b9e5f0fd 100644
--- a/doc/build/changelog/migration_10.rst
+++ b/doc/build/changelog/migration_10.rst
@@ -808,6 +808,25 @@ a cursor to be closed unless all results are fully fetched.
:ticket:`2515`
+.. _bug_3186:
+
+MySQL boolean symbols "true", "false" work again
+------------------------------------------------
+
+0.9's overhaul of the IS/IS NOT operators as well as boolean types in
+:ticket:`2682` disallowed the MySQL dialect from making use of the
+"true" and "false" symbols in the context of "IS" / "IS NOT". Apparently,
+even though MySQL has no "boolean" type, it supports IS / IS NOT when the
+special "true" and "false" symbols are used, even though these are otherwise
+synonymous with "1" and "0" (and IS/IS NOT don't work with the numerics).
+
+So the change here is that the MySQL dialect remains "non native boolean",
+but the :func:`.true` and :func:`.false` symbols again produce the
+keywords "true" and "false", so that an expression like ``column.is_(true())``
+again works on MySQL.
+
+:ticket:`3186`
+
.. _change_3182:
PyODBC driver name is required with hostname-based SQL Server connections