Skip to content

Commit 7a21a69

Browse files
author
Oscar
authored
Merge pull request #8 from likern/bind-js-bool
Bind javascript booleans
2 parents efce550 + 94f70e5 commit 7a21a69

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cpp/sequel.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ void bindStatement(sqlite3_stmt *statement, jsi::Runtime &rt, jsi::Value const &
200200
{
201201
sqlite3_bind_null(statement, ii + 1);
202202
}
203+
else if (value.isBool())
204+
{
205+
int intVal = int(value.getBool());
206+
sqlite3_bind_int(statement, ii + 1, intVal);
207+
}
203208
else if (value.isNumber())
204209
{
205210
double doubleVal = value.asNumber();

0 commit comments

Comments
 (0)