]> 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:44:47 +0000 (12:44 -0400)
commit5c60aaefd32a7bdee611fb340911409e0b8223ed
treeb5d13754a0c420db26eaf343a71d4d2ef946de61
parent0e4469150acae9374aec5dff66ca996683c7c744
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
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/default_comparator.py
test/sql/test_operators.py