Closed
Description
Migrated issue, originally created by Anonymous
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
Attachments: patch
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
sqlalchemy-bot commentedon Aug 30, 2007
Anonymous wrote:
Patch to reproduce bug
sqlalchemy-bot commentedon Aug 30, 2007
Changes by Anonymous:
sqlalchemy-bot commentedon Sep 8, 2007
Michael Bayer (@zzzeek) wrote:
fc753a0 . take a look over there, I've also added an extra kwarg to shard_chooser "clause", which is the ClauseElement passed to session.execute(), for clients which use that feature. Otherwise it'll be None.
sqlalchemy-bot commentedon Sep 8, 2007
Changes by Michael Bayer (@zzzeek):