title: Number of rows inserted into SQLite db is negative
body: <p>I'm trying to insert new records into <code>SQLite</code> database from <code>Python</code> code.</p>
  
  <pre><code>  con = sqlite.connect(connectionString)
    cur = con.cursor()
    countOfNewItems = 0
    for ...
      try:
        con.execute("insert or ignore into items ...")
        countOfNewItems += cur.rowcount
      except:
        cur.close()
        con.close()
        print "Error when inserting item '%s' to database." % item
        exit(1)
    cur.close()
    con.commit()
    con.close()
    print "%d new items have been inserted." % countOfNewItems
  </code></pre>
  
  <p>My code reports negative number of inserted records (-5141).</p>
  
  <p>Because my database was empty, I could find out how many records were inserted via command line</p>
  
  <p><code>select count(*) from items;</code></p>
  
  <p>4866</p>
  
  <p>Could you advise me what's wrong. Why the two values don't match and why it's negative?</p>