Suppose I have a table/object called Node that maps to Host by
relation field 'host' on foreign key host_id that may be null.  Why
can't I do the following:

Query(Node).select_by(host=None)

When it seems obvious that I mean this:

Query(Node).select_by(Node.c.host_id==None)

I think the former would be cleaner, since I could just pass a 'host'
variable that may be None without having to check it manually first
before getting its id (however simple that might be).

Thanks.
Ryan


--~--~---------~--~----~------------~-------~--~----~
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