Skip Menu |

This queue is for tickets about the DBD-SQLite-Amalgamation CPAN distribution.

Report information
The Basics
Id: 40395
Status: new
Priority: 0/
Queue: DBD-SQLite-Amalgamation

Owner: Nobody in particular
Requestors: janus [...]

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)

Subject: Patch to fix "closing dbh with active statement handles"
Download (untitled) / with headers
text/plain 208b
Here's a patch to prevent those annoying "closing dbh with active statement handles" warnings. It's the same diff i've attached to #40383 as it applies just fine and works like expected. Kind regards, Simon
Subject: patch-dbdimp_c.diff
Download patch-dbdimp_c.diff
text/x-diff 525b
--- dbdimp.c.orig Fri Aug 24 04:51:25 2007 +++ dbdimp.c Sat Oct 25 22:31:04 2008 @@ -151,8 +151,13 @@ sqlite_db_disconnect (SV *dbh, imp_dbh_t *imp_dbh) } if (sqlite3_close(imp_dbh->db) == SQLITE_BUSY) { + sqlite3_stmt *pStmt; /* 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;

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to