summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/query.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-09 17:46:00 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-09 17:46:00 -0500
commitdcd65902523f08dc1027d4d5a013b2c1f95bc230 (patch)
treefaa712548acc6cc0489491af96b0bcf28bcba95b /lib/sqlalchemy/orm/query.py
parent087c16c1320d8c33d7b02259327a4d3adcc40bfa (diff)
parente9b059f782487ea375706dc32c5c79b8340df19a (diff)
downloadsqlalchemy-dcd65902523f08dc1027d4d5a013b2c1f95bc230.tar.gz
- moved the logic within _BindParamClause which decides about coercing the bind's type
based on the compared type into AbstractType. The new method is called _coerce_compared_value() and receives the operator and the raw python value to be coerced. TypeDecorator overrides this to provude the "old" 0.5 behavior of coercing the other side of the expression unconditonally. - added docs to TypeDecorator attempting to explain this though they are a little verbose. - added caveats to Interval, which in "non-native" mode can't really handle proper expression behavior. the "typing" would have to move into the compiler, such that on a DB like SQLite we're actually wrapping left/right side into its epoch functions, etc., its a big job. current infrastructure, as powerful as it is, still isn't at that level.
Diffstat (limited to 'lib/sqlalchemy/orm/query.py')
0 files changed, 0 insertions, 0 deletions