I've figured out why it doesn't work. The scalar method on Session
doesn't deal with sharding.

On Apr 11, 11:55 am, Geoff <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm struggling to understand why the shard_chooser gets called for
> this query:
>
> SELECT count(users.uid) AS count_1 FROM users WHERE users.external_id
> = %s
>
> I would have thought this query_chooser should be called instead?
> shard_chooser gets set a mapper, a clause but the instance is None.
>
> Thanks for any help,
>
> Geoff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to