@@ -115,7 +115,7 @@ pysqlite_connection_init(pysqlite_Connection *self, PyObject *args,
115
115
Py_DECREF (database_obj );
116
116
117
117
if (rc != SQLITE_OK ) {
118
- _pysqlite_seterror (self -> db , NULL );
118
+ _pysqlite_seterror (self -> db );
119
119
return -1 ;
120
120
}
121
121
@@ -342,7 +342,7 @@ pysqlite_connection_close_impl(pysqlite_Connection *self)
342
342
rc = sqlite3_close_v2 (self -> db );
343
343
344
344
if (rc != SQLITE_OK ) {
345
- _pysqlite_seterror (self -> db , NULL );
345
+ _pysqlite_seterror (self -> db );
346
346
return NULL ;
347
347
} else {
348
348
self -> db = NULL ;
@@ -383,21 +383,21 @@ PyObject* _pysqlite_connection_begin(pysqlite_Connection* self)
383
383
Py_END_ALLOW_THREADS
384
384
385
385
if (rc != SQLITE_OK ) {
386
- _pysqlite_seterror (self -> db , statement );
386
+ _pysqlite_seterror (self -> db );
387
387
goto error ;
388
388
}
389
389
390
390
rc = pysqlite_step (statement , self );
391
391
if (rc != SQLITE_DONE ) {
392
- _pysqlite_seterror (self -> db , statement );
392
+ _pysqlite_seterror (self -> db );
393
393
}
394
394
395
395
Py_BEGIN_ALLOW_THREADS
396
396
rc = sqlite3_finalize (statement );
397
397
Py_END_ALLOW_THREADS
398
398
399
399
if (rc != SQLITE_OK && !PyErr_Occurred ()) {
400
- _pysqlite_seterror (self -> db , NULL );
400
+ _pysqlite_seterror (self -> db );
401
401
}
402
402
403
403
error :
@@ -431,20 +431,20 @@ pysqlite_connection_commit_impl(pysqlite_Connection *self)
431
431
rc = sqlite3_prepare_v2 (self -> db , "COMMIT" , -1 , & statement , NULL );
432
432
Py_END_ALLOW_THREADS
433
433
if (rc != SQLITE_OK ) {
434
- _pysqlite_seterror (self -> db , NULL );
434
+ _pysqlite_seterror (self -> db );
435
435
goto error ;
436
436
}
437
437
438
438
rc = pysqlite_step (statement , self );
439
439
if (rc != SQLITE_DONE ) {
440
- _pysqlite_seterror (self -> db , statement );
440
+ _pysqlite_seterror (self -> db );
441
441
}
442
442
443
443
Py_BEGIN_ALLOW_THREADS
444
444
rc = sqlite3_finalize (statement );
445
445
Py_END_ALLOW_THREADS
446
446
if (rc != SQLITE_OK && !PyErr_Occurred ()) {
447
- _pysqlite_seterror (self -> db , NULL );
447
+ _pysqlite_seterror (self -> db );
448
448
}
449
449
450
450
}
@@ -481,20 +481,20 @@ pysqlite_connection_rollback_impl(pysqlite_Connection *self)
481
481
rc = sqlite3_prepare_v2 (self -> db , "ROLLBACK" , -1 , & statement , NULL );
482
482
Py_END_ALLOW_THREADS
483
483
if (rc != SQLITE_OK ) {
484
- _pysqlite_seterror (self -> db , NULL );
484
+ _pysqlite_seterror (self -> db );
485
485
goto error ;
486
486
}
487
487
488
488
rc = pysqlite_step (statement , self );
489
489
if (rc != SQLITE_DONE ) {
490
- _pysqlite_seterror (self -> db , statement );
490
+ _pysqlite_seterror (self -> db );
491
491
}
492
492
493
493
Py_BEGIN_ALLOW_THREADS
494
494
rc = sqlite3_finalize (statement );
495
495
Py_END_ALLOW_THREADS
496
496
if (rc != SQLITE_OK && !PyErr_Occurred ()) {
497
- _pysqlite_seterror (self -> db , NULL );
497
+ _pysqlite_seterror (self -> db );
498
498
}
499
499
500
500
}
@@ -1348,7 +1348,7 @@ pysqlite_connection_call(pysqlite_Connection *self, PyObject *args,
1348
1348
PyErr_SetString (pysqlite_Warning , "SQL is of wrong type. Must be string." );
1349
1349
} else {
1350
1350
(void )pysqlite_statement_reset (statement );
1351
- _pysqlite_seterror (self -> db , NULL );
1351
+ _pysqlite_seterror (self -> db );
1352
1352
}
1353
1353
goto error ;
1354
1354
}
@@ -1669,7 +1669,7 @@ pysqlite_connection_backup_impl(pysqlite_Connection *self,
1669
1669
Py_END_ALLOW_THREADS
1670
1670
1671
1671
if (bck_handle == NULL) {
1672
- _pysqlite_seterror (bck_conn , NULL );
1672
+ _pysqlite_seterror (bck_conn );
1673
1673
return NULL ;
1674
1674
}
1675
1675
@@ -1707,7 +1707,7 @@ pysqlite_connection_backup_impl(pysqlite_Connection *self,
1707
1707
Py_END_ALLOW_THREADS
1708
1708
1709
1709
if (rc != SQLITE_OK ) {
1710
- _pysqlite_seterror (bck_conn , NULL );
1710
+ _pysqlite_seterror (bck_conn );
1711
1711
return NULL ;
1712
1712
}
1713
1713
@@ -1793,7 +1793,7 @@ pysqlite_connection_create_collation_impl(pysqlite_Connection *self,
1793
1793
PyErr_Clear ();
1794
1794
}
1795
1795
}
1796
- _pysqlite_seterror (self -> db , NULL );
1796
+ _pysqlite_seterror (self -> db );
1797
1797
goto finally ;
1798
1798
}
1799
1799
0 commit comments