Branko Čibej <[email protected]> writes:

>> We should write a regression test for out SQLite wrapper code with a
>> statement that has a successful step before a failed step.  Does that
>> mean it has to be a SELECT?  If so, how do we get it to fail after a
>> successful step?  Could we use a scalar function to do that sort of
>> thing?
>
> Maybe just try to run the tests with SQLite 3.7.12 ... worked like a
> charm for me to reproduce this error. Of course, I still have no idea
> whatsoever why the step failed, the error message isn't very informative.

3.7.12 doesn't fail in my Linux box.  I added a regression test for
svn_sqlite__reset using a scalar function but I'm not sure how much it
really tests as I could not get it to fail.  By experiment I see that
the sqlite3_reset call after a failed sqlite3_step call returns the same
error as the the failed sqlite3_step, but it also does the reset so a
second sqlite3_reset call doesn't return the error.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*

Reply via email to