DB-API 2.0 question

J

Josh Close

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top