Igor Korot wrote:
> Clement,

Who?  ;-)

> 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.


Regards,
Clemens
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to