Hi,

[I was told on IRC this was not worth bothering with, but since I've 
already written it, I'm sending this out. Please ignore if useless.]

I mistakenly did

query = session.query(Patient).filter_by(id=="John").all()

and got the curious response:

TypeError: filter_by() takes exactly 1 argument (2 given)

The correct syntax is

query = session.query(Patient).filter_by(id="John").all()

Can anything be done to make this a clearer error message?

                                             Thanks, Faheem.

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