From b5f34446c3bca6cd330fd9e8c4c5f021df0c3824 Mon Sep 17 00:00:00 2001 From: Adam Kennedy Date: Sat, 4 Apr 2009 03:01:40 +0000 Subject: [PATCH] Changed finalize to reset per RT #32100 et al --- dbdimp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index a5d5abc..8f7e698 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -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;