Thanks for your replay,

> The easiest in this case is to use query.populate_existing():
>
> sess.query(Person).populate_existing().filter_by().all()
>
> however, this method is only available in 0.4.

How work this ?
This method  - populate_existing() - re-read from database ?


>
> in 0.3, several options:
>
> 1. clear the session, then query:
>
> sess.clear()
> sess.query(Person)....

I've many problems when I use session.clear() method, see:

http://groups.google.be/group/sqlalchemy/browse_thread/thread/d3d077c599d4fe22#cc03342771973db0


Anyway, I test to use session.clear() before query and this work fine.







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