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

DBD::SQLite: applied a patch to fix "INSERT After PK Failure Also Fails Using Prepared" issue [RT #30558]

This commit is contained in:
Kenichi Ishigaki 2009-01-29 03:41:15 +00:00
parent 63b017a9dd
commit 7a48ee2b3a

View file

@ -405,8 +405,7 @@ sqlite_st_execute (SV *sth, imp_sth_t *imp_sth)
if (imp_sth->retval == SQLITE_ROW) {
continue;
}
/* There are bug reports that say this should be sqlite3_reset() */
sqlite3_finalize(imp_sth->stmt);
sqlite3_reset(imp_sth->stmt);
sqlite_error(sth, (imp_xxh_t*)imp_sth, imp_sth->retval, (char*)sqlite3_errmsg(imp_dbh->db));
return -5;
}