We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a model with a boolean field running on an SQLite3 database.
If I try to use find like this:
db.models.endpoint.find({active: true}, function(err, endpoints) { if (err) { console.log(err); done.abort(); } console.log(endpoints); done(endpoints); });
I get the error:
{ [Error: SQLITE_ERROR: no such column: true] errno: 1, code: 'SQLITE_ERROR' }
However, if I call find with an integer instead
db.models.endpoint.find({active: 1}, function(err, endpoints) { if (err) { console.log(err); done.abort(); } console.log(endpoints); done(endpoints); });
I get the results that I am expecting.
Node 0.10.9 sqlite3 2.1.14 orm 2.1.0
The text was updated successfully, but these errors were encountered:
Try with sqlite3 2.1.7. We have issues from that version forward that are not resolved yet.
2.1.7
Sorry, something went wrong.
[email protected] (#292)
d22d45b
SQLite fails when trying to find with a boolean field
Please try the latest commit, don't forget to update dependencies.
This should be fixed, reopen otherwise.
No branches or pull requests
I have a model with a boolean field running on an SQLite3 database.
If I try to use find like this:
I get the error:
However, if I call find with an integer instead
I get the results that I am expecting.
Node 0.10.9
sqlite3 2.1.14
orm 2.1.0
The text was updated successfully, but these errors were encountered: