I should know better. I've been coding in C-based languages for over 25 years. 
I guess I just never thought a prepare statement needed checking. I figured 
once the query worked all was good.

I already have a simple check method. I do check quite a few of the 'step' 
method result values, just not all, and none of the 'prepare' statements.

Thanks,
Rick



On Jul 19, 2012, at 11:42 AM, Simon Slavin wrote:

> 
> On 19 Jul 2012, at 6:03pm, Rick Maddy <rma...@gmail.com> wrote:
> 
>> Thanks. Time to add checks to nearly 400 prepare and step statements.
> 
> Sorry about that.  But you should be able to make a tiny test function which 
> just tests the result and makes sure it's SQLITE_OK.
> 
> You are nowhere near the only person who has had to add checking code long 
> after the coding was started.  One of the problems is that C allows you to 
> use a function which returns int as if it's a void function, without 
> generating a compiler warning or error.
> 
> Simon.

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

Reply via email to