Skip to content

Commit 7e8f43d

Browse files
authored
Update comment
1 parent ecd3d0c commit 7e8f43d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/node_sqlite.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,8 @@ bool StatementSync::BindValue(const Local<Value>& value, const int index) {
22602260
// functions don't make sense to support. Other JS types such as
22612261
// Dates could be supported by converting them to numbers. However, there
22622262
// would not be a good way to read the values back from SQLite with the
2263-
// original type.
2263+
// original type. We make an exception for JS Boolean binding to 1 and 0
2264+
// because SQLite maps true and false keywords to 1 and 0.
22642265
Isolate* isolate = env()->isolate();
22652266
int r;
22662267
if (value->IsNumber()) {

0 commit comments

Comments
 (0)