MonetDB / pymonetdb

The Python API for MonetDB
https://www.monetdb.org/
Mozilla Public License 2.0
28 stars 20 forks source link

Make Cursor.execute() return None instead of -1 #124

Closed yzchang closed 1 year ago

yzchang commented 1 year ago

Return a None instead of -1 when we can't determine a meaningful row count for the result of a Cursor.execute() call, e.g. for the DDL statements.

For reference, see "Cursor attributes" > ".rowcount" (https://peps.python.org/pep-0249/#id20)

PS> Jupyter notebook shows "-1" for a Cursor.execute('create table ...'). Need to find out where exactly the '-1' comes from.

joerivanruth commented 1 year ago

Fixed in 1.7.0