Thanks for reply !  

The error check was left out intentionally to not pollute the code, I stepped
through all code with gdb to certify it's doing all correctly.  

Cheers !  
>  Thu Mar 24 2016 12:03:28 PM CET from "Stephan Beal"
><sgbeal at googlemail.com>  Subject: Re: [sqlite] SQLite with wall enabled
>what's wrong C demo
>
>  On Thu, Mar 24, 2016 at 11:55 AM, Domingo Alvarez Duarte <
> sqlite-mail at dev.dadbiz.es> wrote:
> 
>  
>>There is something wrong with the program or with sqlite3 ?
>> 
>> 
>> 
>> 
>> rc = sqlite3_bind_text(stmt_insert, 1, session_id,
>> sizeof(session_id)-1, NULL);
>> rc = sqlite3_bind_text(stmt_insert, 2, data, sizeof(data)-1,
>> NULL);
>> rc = sqlite3_bind_text(stmt_insert, 3, ip_address,
>> sizeof(ip_address)-1, NULL);
>> rc = sqlite3_step(stmt_insert);
>> rc = sqlite3_reset(stmt_insert);
>> 
>> 

>  You have not checked a single error code there. If you'll check those
> codes, you may be able to find out immediately what the problem is.
> 
> A Golden Rule of C APIs is: if you ignore the result codes, the API may
> ignore you.
> 
> -- 
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
> http://gplus.to/sgbeal
> "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
> those who insist on a perfect world, freedom will have to do." -- Bigby
>Wolf
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
> 
>
>  



?

Reply via email to