Hi! Thank you for review! New patch below.
This probleam appeared because region was cleaned twice: once inTypo: problemsqlite3VdbeHalt() and once in sqlite3VdbeDelete() which was executed during sqlite3_finalize(). Autogenerated ids that were saved there, were fetched after sqlite3VdbeHalt() and before sqlite3_finalize(). In this patch region cleaning in sqlite3VdbeHalt() were removed.Typo: was (or better - has been removed). Again, IMHO I would rephrase commit subject: sql: remove region_truncate() from sqlite3VdbeHalt() And explain in commit message why it was removed. Patch itself is OK.
Fixed commit-message.
New patch: