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

Reply via email to