deferred() does not work with ShardedSession

Issue #771 resolved
Former user created an issue

If I declare a field as "deferred()", and use it within a ShardedSession, it blows up when trying to access the field.

I am pretty sure this is because the get_bind() method in ShardedSession does not accept a keyword parameter named "clause". But the superclass's method, Session.get_bind(), does take such a parameter.

This is easy to reproduce by taking examples/sharding/attribute_shard.py and applying the attached patch to it.

  • Terry Weissman terry at weissman.org trw in #sqlalchemy

Comments (2)

  1. Log in to comment