From d0f67e2c4de4b688409c2589018fdfdba65e837f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 29 Mar 2009 21:21:10 +0000 Subject: - 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] --- lib/sqlalchemy/sql/expression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy') 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.""" -- cgit v1.2.1