Git Product home page Git Product logo

Comments (5)

rogerbinns avatar rogerbinns commented on July 18, 2024

From rogerbinns on April 05, 2008 03:47:17

Reproduced with current development apsw and sqlite 3.5.7.

In general the underlying cause is that SQLite is very finnicky and counter-intuitive
about when error text is available. In this case apsw is getting the constraint
error code but getting the generic unset error text.

Thanks for reporting the problem.

Status: Accepted

from apsw.

rogerbinns avatar rogerbinns commented on July 18, 2024

From rogerbinns on April 16, 2008 20:41:18

I have found the root cause which is an inconsistency in the way SQLite does things,
but I'll have to work around it. Basically the error code looks like this:

 sqlite3_reset(stmt);
 sqlite3_clear_bindings(stmt);
 sqlite3_errmsg(db);

If the error was caused by a binding then calling sqlite3_clear_bindings clears the
error message as well.

from apsw.

rogerbinns avatar rogerbinns commented on July 18, 2024

From rogerbinns on April 16, 2008 21:14:59

Fixed in r122 . Worked around "bug" in SQLite reported at http://www.sqlite.org/cvstrac/tktview?tn=3063

Status: Verified

from apsw.

rogerbinns avatar rogerbinns commented on July 18, 2024

From rogerbinns on May 16, 2008 02:20:49

SQLite fixed the issue in 3.5.9 so undo r122 in r136

from apsw.

rogerbinns avatar rogerbinns commented on July 18, 2024

From rogerbinns on June 30, 2009 22:13:11

This issue was closed by 92c20b5636.

Status: Fixed

from apsw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.