On 2/1/07, Kumar McMillan <[EMAIL PROTECTED]> wrote:
> the fact that the deadlock was solved when I added the connection to
> the transaction tells me that psycopg runs in commit mode
> automatically (even though dbapi 2 says it should not).  The psycopg
> docs reinforce this too :
> http://www.initd.org/tracker/psycopg/wiki/psycopg2_documentation#setting-transaction-isolation-levels
>

Wrong; psycopg2 does not autocommit by default.  It automatically
_creates new transactions_ but you still have to explicitly commit()
or rollback().  This is what DBAPI2 calls for (and is really the only
sane thing to do in non-autocommit mode if you think about it).

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