mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 06:08:38 -04:00
DBD::SQLite: reverted RT #40383 patch which turns out to be somewhat insufficient (causes segfaults)
This commit is contained in:
parent
f75c9fb39d
commit
dec1e584f4
1 changed files with 1 additions and 6 deletions
7
dbdimp.c
7
dbdimp.c
|
@ -151,13 +151,8 @@ sqlite_db_disconnect (SV *dbh, imp_dbh_t *imp_dbh)
|
|||
}
|
||||
|
||||
if (sqlite3_close(imp_dbh->db) == SQLITE_BUSY) {
|
||||
sqlite3_stmt *pStmt;
|
||||
/* active statements! */
|
||||
|
||||
while ((pStmt = sqlite3_next_stmt(imp_dbh->db, NULL)) != NULL)
|
||||
sqlite3_finalize(pStmt);
|
||||
|
||||
sqlite3_close(imp_dbh->db);
|
||||
warn("closing dbh with active statement handles");
|
||||
}
|
||||
imp_dbh->db = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue