Thanks, Matthew. Looks like SA is still complaining about the global name not being defined.
> event = self.sess.query(model.Event).get_by(event_table.c.start_time < > '2007-10-19 10:23:54') The above code produces a similar error... "NameError: global name 'event_table' is not defined" When I try retrieving objects that occurred on a specific date, e.g.... event = self.sess.query(model.Event).get_by(start_time='2006-10-19 10:23:54') ..everything checks out ok. Perhaps it has something to do with the way the operator is being used? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---