On Thu, Jul 30, 2015 at 11:35 PM, Clemens Ladisch <clemens at ladisch.de>
wrote:

> gwenn wrote:
> > sqlite3_stmt_busy returns true after sqlite3_step returns DONE.
>
> The documentation says:
> | The sqlite3_stmt_busy(S) interface returns true (non-zero) if the
> | prepared statement S has been stepped at least once using
> | sqlite3_step(S) but has not run to completion and/or has not been
> | reset using sqlite3_reset(S).
>
> The statement has not been reset, and that "and/or" can be read as "or".
>

Does that means that SQLITE_DONE does _not_ mean "has run to completion"?
Based on the above doc snippet, i would expect sqlite3_stmt_busy() to
return false after step() returns DONE.


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