On Aug 30, 2007, at 2:46 PM, Randall Smith wrote:

>
> After some testing, the example I gave did not work properly.  queries
> executed with con did not reflect changes made in a session  
> transaction.
>   This does seem to work:
>
>          sess = object_session(self)
>          con = sess.connection(self.mapper)
>
> Seems messy.  self.mapper only exists because I assigned it.  I think
> otherwise, a object_mapper(self) would be required.  This works, but I
> think there must be a better way.
>

session.execute(statement) ?

give the docstrings for Session a  good read and also upgrade to 0.4  
if possible, these patterns have been improved in that release.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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