@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.
- package/cpp/bridge.cpp +4 -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
|
-
|
|
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,
|