On Jul 28, 2007, at 2:54 PM, mc wrote:
>
> md=BoundMetaData(db)
> t=Table('test', md, autoload = True)
>
> trans = cn.begin()
> try:
> insert(t).execute(id=332)
> insert(t).execute(id=332)
> trans.commit()
> except:
> trans.rollback()
> raise
the statements must be executed relative to the connection which
contains the transaction:
cn.execute(insert(t), id=332)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---