From a4a38a982aa04f3d08e662c50e55be23cefcc492 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 5 Feb 2010 15:49:02 +0000 Subject: - Added math negation operator support, -x. --- lib/sqlalchemy/sql/compiler.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/sql/compiler.py') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index e635e20e1..4486c24db 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -73,6 +73,7 @@ OPERATORS = { # end Py2K operators.mod : ' % ', operators.truediv : ' / ', + operators.neg : '-', operators.lt : ' < ', operators.le : ' <= ', operators.ne : ' != ', -- cgit v1.2.1