Hi, ALL, On Wed, Apr 24, 2013 at 11:11 AM, Igor Korot <ikoro...@gmail.com> wrote:
> > > On Wed, Apr 24, 2013 at 3:54 AM, Clemens Ladisch <clem...@ladisch.de>wrote: > >> Igor Korot wrote: >> > Clement, >> >> Who? ;-) >> > > Oops... > I promise I will never write an E-mail at 1:00 AM ;-) > > >> > On Wed, Apr 24, 2013 at 12:50 AM, Clemens Ladisch <clem...@ladisch.de >> >wrote: >> >> Igor Korot wrote: >> >>> ... >> >>> else >> >>> sqlite3_step( stmt ); >> >> >> >> You forgot to check for errors. >> >> I guess the code that executes the COMMIT has the same bug. >> > >> > I am checking the error. >> > It is from the sqlite3_prepare_v2(). >> > >> > Are you saying I have to check sqlite3_step() also? >> >> sqlite3_prepare_v2() just parses the statement. When it succeeds, you >> just know that your SQL is syntactically correct. >> >> It does not get executed until the sqlite3_step() call. >> > > OK, thanx. > Will check and post here if it's something I don't know. > sqlite3_step() returns 101 which means SQLITE_DONE and sqlite3_finalize() return 0 which is SQLITE_OK. What else can I do? Thank you. > >> >> >> Regards, >> Clemens >> _______________________________________________ >> sqlite-users mailing list >> sqlite-users@sqlite.org >> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users >> > > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users