diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-08 20:28:26 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-09-08 20:28:26 +0000 |
| commit | 8c14291b6d634604a6da3bbc9c965e0de3084933 (patch) | |
| tree | 3d558e3550e6a3bf41b3f73a1bf29a2ee77714f7 /lib/sqlalchemy/sql/expression.py | |
| parent | 5ba8a25afe9c4b84b74d5e51a641992b5d44097a (diff) | |
| download | sqlalchemy-8c14291b6d634604a6da3bbc9c965e0de3084933.tar.gz | |
- adjusted operator precedence of NOT to match '==' and others, so that
~(x <operator> y) produces NOT (x <op> y), which is better compatible with MySQL.
[ticket:764]. this doesn't apply to "~(x==y)" as it does in 0.3 since ~(x==y)
compiles to "x != y", but still applies to operators like BETWEEN.
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
| -rw-r--r-- | lib/sqlalchemy/sql/expression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index b1a5bf96f..f7514fec9 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -1159,7 +1159,7 @@ PRECEDENCE = { operators.le:5, operators.between_op:5, operators.distinct_op:5, - operators.inv:4, + operators.inv:5, operators.and_:3, operators.or_:2, operators.comma_op:-1, |
