@op-engineering/op-sqlite 8.0.1 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cpp/bridge.cpp +4 -2
  2. package/package.json +1 -1
package/cpp/bridge.cpp CHANGED
@@ -204,8 +204,10 @@ inline void opsqlite_bind_statement(sqlite3_stmt *statement,
204
204
  int sqIndex = ii + 1;
205
205
  JSVariant value = values->at(ii);
206
206
 
207
- if (std::holds_alternative<bool>(value) ||
208
- std::holds_alternative<int>(value)) {
207
+ if (std::holds_alternative<bool>(value)) {
208
+ sqlite3_bind_int(statement, sqIndex,
209
+ static_cast<int>(std::get<bool>(value)));
210
+ } else if (std::holds_alternative<int>(value)) {
209
211
  sqlite3_bind_int(statement, sqIndex, std::get<int>(value));
210
212
  } else if (std::holds_alternative<long long>(value)) {
211
213
  sqlite3_bind_double(statement, sqIndex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op-engineering/op-sqlite",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Next generation SQLite for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",