mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
Merge pull request #25 from jacquesg/silence-warnings
Silence some warnings
This commit is contained in:
commit
f8a6690596
1 changed files with 3 additions and 3 deletions
6
dbdimp.c
6
dbdimp.c
|
@ -642,7 +642,7 @@ sqlite_db_disconnect(SV *dbh, imp_dbh_t *imp_dbh)
|
||||||
sqlite_trace( dbh, imp_dbh, 1, form("rc = %d", rc) );
|
sqlite_trace( dbh, imp_dbh, 1, form("rc = %d", rc) );
|
||||||
if ( SQLITE_BUSY == rc ) { /* We have unfinalized statements */
|
if ( SQLITE_BUSY == rc ) { /* We have unfinalized statements */
|
||||||
/* Only close the statements that were prepared by this module */
|
/* Only close the statements that were prepared by this module */
|
||||||
while ( s = imp_dbh->stmt_list ) {
|
while ( (s = imp_dbh->stmt_list) ) {
|
||||||
sqlite_trace( dbh, imp_dbh, 1, form("Finalizing statement (%p)", s->stmt) );
|
sqlite_trace( dbh, imp_dbh, 1, form("Finalizing statement (%p)", s->stmt) );
|
||||||
sqlite3_finalize( s->stmt );
|
sqlite3_finalize( s->stmt );
|
||||||
imp_dbh->stmt_list = s->prev;
|
imp_dbh->stmt_list = s->prev;
|
||||||
|
@ -657,7 +657,7 @@ sqlite_db_disconnect(SV *dbh, imp_dbh_t *imp_dbh)
|
||||||
}
|
}
|
||||||
/* The list should be empty at this point, but if for some unforseen reason
|
/* The list should be empty at this point, but if for some unforseen reason
|
||||||
it isn't, free remaining nodes here */
|
it isn't, free remaining nodes here */
|
||||||
while( s = imp_dbh->stmt_list ) {
|
while( (s = imp_dbh->stmt_list) ) {
|
||||||
imp_dbh->stmt_list = s->prev;
|
imp_dbh->stmt_list = s->prev;
|
||||||
sqlite3_free( s );
|
sqlite3_free( s );
|
||||||
}
|
}
|
||||||
|
@ -871,7 +871,7 @@ sqlite_st_prepare_sv(SV *sth, imp_sth_t *imp_sth, SV *sv_statement, SV *attribs)
|
||||||
}
|
}
|
||||||
return FALSE; /* -> undef in lib/DBD/SQLite.pm */
|
return FALSE; /* -> undef in lib/DBD/SQLite.pm */
|
||||||
}
|
}
|
||||||
if (&extra && imp_dbh->allow_multiple_statements) {
|
if (imp_dbh->allow_multiple_statements) {
|
||||||
imp_sth->unprepared_statements = savepv(extra);
|
imp_sth->unprepared_statements = savepv(extra);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue