diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-05 15:49:02 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-05 15:49:02 +0000 |
commit | a4a38a982aa04f3d08e662c50e55be23cefcc492 (patch) | |
tree | 3f665714d23871466fe6c76566fa8dd1ffa808d2 /lib/sqlalchemy/sql/operators.py | |
parent | dfbb1fc148fa784000dfee43a194d3f8d40a0ae2 (diff) | |
download | sqlalchemy-a4a38a982aa04f3d08e662c50e55be23cefcc492.tar.gz |
- Added math negation operator support, -x.
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 879f0f3e5..6f70b1778 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -4,7 +4,7 @@ """Defines operators used in SQL expressions.""" from operator import ( - and_, or_, inv, add, mul, sub, mod, truediv, lt, le, ne, gt, ge, eq + and_, or_, inv, add, mul, sub, mod, truediv, lt, le, ne, gt, ge, eq, neg ) # Py2K @@ -98,6 +98,7 @@ _PRECEDENCE = { div: 7, # end Py2K mod: 7, + neg: 7, add: 6, sub: 6, concat_op: 6, |