@@ -367,11 +367,11 @@ int pysqlite_check_connection(pysqlite_Connection* con)
367
367
PyObject * _pysqlite_connection_begin (pysqlite_Connection * self )
368
368
{
369
369
int rc ;
370
- const char * tail ;
371
370
sqlite3_stmt * statement ;
372
371
373
372
Py_BEGIN_ALLOW_THREADS
374
- rc = sqlite3_prepare_v2 (self -> db , self -> begin_statement , -1 , & statement , & tail );
373
+ rc = sqlite3_prepare_v2 (self -> db , self -> begin_statement , -1 , & statement ,
374
+ NULL );
375
375
Py_END_ALLOW_THREADS
376
376
377
377
if (rc != SQLITE_OK ) {
@@ -411,7 +411,6 @@ pysqlite_connection_commit_impl(pysqlite_Connection *self)
411
411
/*[clinic end generated code: output=3da45579e89407f2 input=39c12c04dda276a8]*/
412
412
{
413
413
int rc ;
414
- const char * tail ;
415
414
sqlite3_stmt * statement ;
416
415
417
416
if (!pysqlite_check_thread (self ) || !pysqlite_check_connection (self )) {
@@ -421,7 +420,7 @@ pysqlite_connection_commit_impl(pysqlite_Connection *self)
421
420
if (!sqlite3_get_autocommit (self -> db )) {
422
421
423
422
Py_BEGIN_ALLOW_THREADS
424
- rc = sqlite3_prepare_v2 (self -> db , "COMMIT" , -1 , & statement , & tail );
423
+ rc = sqlite3_prepare_v2 (self -> db , "COMMIT" , -1 , & statement , NULL );
425
424
Py_END_ALLOW_THREADS
426
425
if (rc != SQLITE_OK ) {
427
426
_pysqlite_seterror (self -> db , NULL );
@@ -461,7 +460,6 @@ pysqlite_connection_rollback_impl(pysqlite_Connection *self)
461
460
/*[clinic end generated code: output=b66fa0d43e7ef305 input=12d4e8d068942830]*/
462
461
{
463
462
int rc ;
464
- const char * tail ;
465
463
sqlite3_stmt * statement ;
466
464
467
465
if (!pysqlite_check_thread (self ) || !pysqlite_check_connection (self )) {
@@ -472,7 +470,7 @@ pysqlite_connection_rollback_impl(pysqlite_Connection *self)
472
470
pysqlite_do_all_statements (self , ACTION_RESET , 1 );
473
471
474
472
Py_BEGIN_ALLOW_THREADS
475
- rc = sqlite3_prepare_v2 (self -> db , "ROLLBACK" , -1 , & statement , & tail );
473
+ rc = sqlite3_prepare_v2 (self -> db , "ROLLBACK" , -1 , & statement , NULL );
476
474
Py_END_ALLOW_THREADS
477
475
if (rc != SQLITE_OK ) {
478
476
_pysqlite_seterror (self -> db , NULL );
0 commit comments