]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- A warning is emitted when :func:`.cast` is used with the MySQL
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 9 Feb 2015 20:29:14 +0000 (15:29 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 9 Feb 2015 20:29:14 +0000 (15:29 -0500)
commit1ad236127c060141426c84f446e7b7e773febb31
tree36c558309fc719847c76e9a5bcb778cfb1678fb2
parent03038f7e75500e7d5388dedd79d9b35e01b3a677
- A warning is emitted when :func:`.cast` is used with the MySQL
dialect on a type where MySQL does not support CAST; MySQL only
supports CAST on a subset of datatypes.   SQLAlchemy has for a long
time just omitted the CAST for unsupported types in the case of
MySQL.  While we don't want to change this now, we emit a warning
to show that it's taken place.   A warning is also emitted when
a CAST is used with an older MySQL version (< 4) that doesn't support
CAST at all, it's skipped in this case as well.
fixes #3237
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_compiler.py