Hi wfpearson, On Apr 18, 1:21 pm, wfpearson <[EMAIL PROTECTED]> wrote:
[snip full description of the problem] > I've tried the following method: > surgery = session.query(Surgery).select_by(dictation=None)[0] I'm pretty new to all of this myself, but maybe try using clause elements in yout select_by. See: http://www.sqlalchemy.org/docs/datamapping.html#datamapping_query So maybe something like: surgery = session.query(Surgery).select_by(surgery_table.c.dictation_id==null()) [0] would work. This is _totally_ untested (and it might be gibberish), but it might be worth a try. Good Luck, Matthew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---