DB-API 2.0 question

Josh Close narshe at gmail.com
Thu Aug 5 14:37:15 EDT 2004


I'm using sybase and get this error when running two inserts in a row.

Process 88 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

All I'm doing is

conn = connect(host, user, pass, db)
cursor = conn.cursor()
cursor.execute(update query here)
cursor.execute(update query here)

Do I need to put a commit() in there or something? I guess I'm not
really familiar with how DB-API 2.0 works. I would think upon a second
execute, the first would be committed already.

-Josh



More information about the Python-list mailing list