Simon 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? Thank you. On Oct 5, 2017 11:50 AM, "Simon Slavin" <slav...@bigfraud.org> wrote: > > > On 5 Oct 2017, at 4:35pm, Igor Korot <ikoro...@gmail.com> wrote: > > > You mean like have some kind of flag and display an error on disconnect > > only if not set? > > If ROLLBACK fails, it’s probably because of a hardware failure or your > database being corrupt. You can’t do anything else useful with the > database connection since it has produced an unrecoverable error. > > Display an error message to your user and quit immediately. That way you > don’t risk corrupting your dataset by doing more operations which assume > that that ROLLBACK succeeded. > > Simon. > _______________________________________________ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users