Skip to content

Commit

Permalink
CONPY-272: documentation fix
Browse files Browse the repository at this point in the history
Fixed documentation: Cursors lastrowid attribute returns None (was
zero).
  • Loading branch information
9EOR9 committed Oct 18, 2023
1 parent ff6f8cb commit 6a5388a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mariadb/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def lastrowid(self):
If the last query wasn't an INSERT or UPDATE
statement or if the modified table does not have a column with the
AUTO_INCREMENT attribute and LAST_INSERT_ID was not used, the returned
value will be zero
value will be None
"""
self.check_closed()

Expand Down

0 comments on commit 6a5388a

Please sign in to comment.