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:
parent
63b017a9dd
commit
7a48ee2b3a
1 changed files with 1 additions and 2 deletions
3
dbdimp.c
3
dbdimp.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue