Simon Posnjak <[EMAIL PROTECTED]> wrote: > Hi again! > > I found what the problem is that sqlite returns the wrong error code. > What happens is next (in version 3.3.7): > -vdbe.c:2593 -> sqlite3BtreeCursor returns code 6 (table locked) => rc = 6 > -vdbe.c:2606 -> switch checks rc value > -vdbe.c:2642 -> falls to default which is goto abort_due_to_error (:4975) > -vdbe.c:4980 -> goto vbe_halt (:4947) > -vdbe.c:4948 -> rc > 0 == true > -vdbe.c:4950 -> rc = SQLITE_ERROR <== PROBLEM we forget the correct > error code > -vdbe.c:4956 -> return rc (value is 1) == WRONG! > > I added it as a bug (ticket 1965). >
Ticket #1965 has been resolved by enhancing the documentation to better describe the return code from sqlite3_step() and how to get it to do what you were expecting it to do. -- D. Richard Hipp <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------