]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [feature] Revised the rules used to determine
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 Jul 2012 20:36:29 +0000 (16:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 22 Jul 2012 20:36:29 +0000 (16:36 -0400)
commitfaa9b2c8da63aa116579fc6c43a30ce479b92ac2
tree30a75f94f18a9f51197658e5b0a8d5ae1b09753d
parent2bee05098e09dcdf09f7c8ff1c7efeba0c2fc9f2
- [feature] Revised the rules used to determine
the operator precedence for the user-defined
operator, i.e. that granted using the ``op()``
method.   Previously, the smallest precedence
was applied in all cases, now the default
precedence is zero, lower than all operators
except "comma" (such as, used in the argument
list of a ``func`` call) and "AS", and is
also customizable via the "precedence" argument
on the ``op()`` method.  [ticket:2537]
CHANGES
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/operators.py
test/sql/test_compiler.py