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

Changed finalize to reset per RT #32100 et al

This commit is contained in:
Adam Kennedy 2009-04-04 03:01:40 +00:00
parent 431109b9b4
commit b5f34446c3

View file

@ -430,8 +430,7 @@ sqlite_st_execute (SV *sth, imp_sth_t *imp_sth)
case SQLITE_DONE: DBIc_ACTIVE_on(imp_sth);
sqlite_trace(5, "exec ok - %d rows, %d cols\n", imp_sth->nrow, DBIc_NUM_FIELDS(imp_sth));
return 0;
/* There are bug reports that say this should be sqlite3_reset() */
default: sqlite3_finalize(imp_sth->stmt);
default: sqlite3_reset(imp_sth->stmt);
imp_sth->stmt = NULL;
sqlite_error(sth, (imp_xxh_t*)imp_sth, imp_sth->retval, (char*)sqlite3_errmsg(imp_dbh->db));
return -6;