diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-03-29 21:21:10 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-03-29 21:21:10 +0000 |
commit | d0f67e2c4de4b688409c2589018fdfdba65e837f (patch) | |
tree | 1c2b6866e03f69232c33eb5b5eba50c057b2c13c /lib/sqlalchemy/sql/expression.py | |
parent | 290ff9930a33a5c165d3952a7bd1ed858b7a4572 (diff) | |
download | sqlalchemy-d0f67e2c4de4b688409c2589018fdfdba65e837f.tar.gz |
- Lazy loader will not use get() if the "lazy load"
SQL clause matches the clause used by get(), but
contains some parameters hardcoded. Previously
the lazy strategy would fail with the get(). Ideally
get() would be used with the hardcoded parameters
but this would require further development.
[ticket:1357]
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 f94e849e5..5a0d5b043 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -2013,7 +2013,7 @@ class _BindParamClause(ColumnElement): the same type. """ - return isinstance(other, _BindParamClause) and other.type.__class__ == self.type.__class__ + return isinstance(other, _BindParamClause) and other.type.__class__ == self.type.__class__ and self.value == other.value def __getstate__(self): """execute a deferred value for serialization purposes.""" |