Skip to content

Commit d0dc60a

Browse files
committed
sqlite: fix compilation
1 parent 6ebd672 commit d0dc60a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node_sqlite.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,8 +1748,9 @@ void DatabaseSync::ApplyChangeset(const FunctionCallbackInfo<Value>& args) {
17481748
// The filterCallback should be updated to avoid the check and
17491749
// propagate the error correctly.
17501750
Local<Value> argv[] = {String::NewFromUtf8(env->isolate(),
1751-
item.c_str(),
1752-
NewStringType::kNormal)
1751+
item.data(),
1752+
NewStringType::kNormal,
1753+
static_cast<int>(item.size()))
17531754
.ToLocalChecked()};
17541755
Local<Value> result =
17551756
filterFunc->Call(env->context(), Null(env->isolate()), 1, argv)

0 commit comments

Comments
 (0)