]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Preserve type for math negation
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Jul 2016 16:44:47 +0000 (12:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Jul 2016 16:45:51 +0000 (12:45 -0400)
commit9880da342f28960df480ddabc811e623a0b87a12
tree3404f299ebe2e989d7e8927d6f508dd697409192
parentbfa59ade7b3ff1885145646d75eb41ee2054928e
Preserve type for math negation

Fixed issue in SQL math negation operator where the type of the
expression would no longer be the numeric type of the original.
This would cause issues where the type determined result set
behaviors.

Change-Id: If0e339614a3686e251235fc94b6f59310c4630a5
Fixes: #3735
(cherry picked from commit 5c60aaefd32a7bdee611fb340911409e0b8223ed)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/default_comparator.py
test/sql/test_operators.py