Skip to content

Commit 5819902

Browse files
Fix return value
1 parent a5fca9d commit 5819902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ static PyObject *
13131313
get_rowcount(pysqlite_Cursor *self, void *Py_UNUSED(closure))
13141314
{
13151315
if (!check_cursor(self)) {
1316-
return -1;
1316+
return NULL;
13171317
}
13181318
if (self->rowcount != -1L) {
13191319
long changes = (long)sqlite3_total_changes(self->connection->db);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy