title: Why does DB2 return -1 when deleting all rows in a table?
body: <p>The question says it all. Using the Python API as an example:</p>
  
  <pre><code>import ibm_db
  #setup stuff
  conn = ibm_connect(DATABASE, user, password)
  stmt = ibm_db.exec_immediate(conn, 'DELETE FROM sometable')
  print(ibm_db.num_rows(stmt)) # prints -1
  </code></pre>
  
  <p>Why doesn't it print the <em>actual</em> count of rows deleted?</p>