DB-API 2.0 question

Discussion in 'Python' started by Josh Close, Aug 5, 2004.

  1. Josh Close

    Josh Close Guest

    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
     
    Josh Close, Aug 5, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shlomo Anglister
    Replies:
    1
    Views:
    433
    Default User
    Aug 2, 2004
  2. Praveen, Tayal (IE10)
    Replies:
    0
    Views:
    396
    Praveen, Tayal (IE10)
    Mar 17, 2005
  3. John123

    Profiling API or Membership API

    John123, Oct 20, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    399
    John123
    Oct 20, 2006
  4. George2

    platform specific API or C standard API

    George2, Nov 12, 2007, in forum: C Programming
    Replies:
    13
    Views:
    774
    Tor Rustad
    Nov 13, 2007
  5. Timothy Grant
    Replies:
    5
    Views:
    440
    Timothy Grant
    Aug 6, 2008
Loading...

Share This Page