On 5 Oct 2017, at 6:42pm, Igor Korot <ikoro...@gmail.com> wrote:
> My question here is about ROLLBACK failure vs sqlite3_close() failure. > Like I said when the app closes I'm calling the latter and if it failed I > again display an error and just quit. > > But if the former fails calling _close() does not make much sense, right? If you get an unexpected failure on _execute() or on _step() then I don’t think you need to worry about calling _close(). Just quit. The question of what _close() would actually do after an error probably depends on what the error was. But since you can’t do anything if _close() fails I refuse to worry about it. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users