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

DBD-SQLite: fixed DBIC reconnection issue by a patch from DMAKI++

This commit is contained in:
Kenichi Ishigaki 2009-04-03 10:07:12 +00:00
parent 6662ea6fff
commit 99ad2b4e23

View file

@ -333,6 +333,11 @@ sqlite_st_execute (SV *sth, imp_sth_t *imp_sth)
/* warn("execute\n"); */
if (!DBIc_ACTIVE(imp_dbh)) {
sqlite_error(sth, (imp_xxh_t*)imp_sth, retval, "attempt to execute on inactive database handle");
return FALSE;
}
if (DBIc_ACTIVE(imp_sth)) {
sqlite_trace(3, "execute still active, reset");
if ((imp_sth->retval = sqlite3_reset(imp_sth->stmt)) != SQLITE_OK) {