Comparing equivalence of columns in the ORM is best
accomplished using col1.shares_lineage(col2).
[ticket:1491]
+
+ - Removed unused `load()` method from ShardedQuery.
+ [ticket:1606]
0.5.6
=====
else:
return None
- def load(self, ident, **kwargs):
- if self._shard_id is not None:
- return super(ShardedQuery, self).load(ident)
- else:
- for shard_id in self.id_chooser(self, ident):
- o = self.set_shard(shard_id).load(ident, raiseerr=False, **kwargs)
- if o is not None:
- return o
- else:
- raise sa_exc.InvalidRequestError("No instance found for identity %s" % repr(ident))