node.js node-sqlite3 error

I got this wonderful error when setting up CRUD functions on a little node project I’m working on:

{ [Error: SQLITE_RANGE: bind or column index out of range] errno: 25, code: 'SQLITE_RANGE' }

Here is the code that caused the error:

The problem here is that I enclosed the question mark placeholders in single quotes:

Here is the corrected code which executes without error:


Leave a Reply

Your email address will not be published.