1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

DBD::SQLite: reverted RT #40383 patch which turns out to be somewhat insufficient (causes segfaults)

This commit is contained in:
Kenichi Ishigaki 2009-01-29 02:03:54 +00:00
parent f75c9fb39d
commit dec1e584f4

View file

@ -151,13 +151,8 @@ sqlite_db_disconnect (SV *dbh, imp_dbh_t *imp_dbh)
} }
if (sqlite3_close(imp_dbh->db) == SQLITE_BUSY) { if (sqlite3_close(imp_dbh->db) == SQLITE_BUSY) {
sqlite3_stmt *pStmt;
/* active statements! */ /* active statements! */
warn("closing dbh with active statement handles");
while ((pStmt = sqlite3_next_stmt(imp_dbh->db, NULL)) != NULL)
sqlite3_finalize(pStmt);
sqlite3_close(imp_dbh->db);
} }
imp_dbh->db = NULL; imp_dbh->db = NULL;