Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.1.7, 1.1.8
-
None
-
3.12
Description
I don't know if the bug is in the description or in the code but the documentation says that cursor.lastrowid will return zero if there was nothing inserted, but the code clearly shows that it will return None, zero can't possibly be returned from this code.
https://github.com/mariadb-corporation/mariadb-connector-python/blame/v1.1.8/mariadb/cursors.py#L543C25-L543C25