[sqlalchemy] Re: Curious problem with SQLAlchemy

2007-05-13 Thread Michael Harrison
wrote: > On May 13, 2007, at 1:42 PM, Michael Harrison wrote: > > > > > > > I'm trying to execute a simple query using SA. The following python > > script *works*: > > > dbsession = create_session() > > results = dbsession.query(User).select_by([E

[sqlalchemy] Curious problem with SQLAlchemy

2007-05-13 Thread Michael Harrison
I'm trying to execute a simple query using SA. The following python script *works*: dbsession = create_session() results = dbsession.query(User).select_by(email='[EMAIL PROTECTED]') for user in results: print user.email dbsession.close() However, I get an error when the following code execu