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:
parent
6662ea6fff
commit
99ad2b4e23
1 changed files with 1256 additions and 1251 deletions
5
dbdimp.c
5
dbdimp.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue