Skip to content

Commit 3087fbe

Browse files
authored
sqlite: statement.set* return statement
1 parent 95852d7 commit 3087fbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/node_sqlite.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,7 @@ void StatementSync::SetAllowBareNamedParameters(
26032603
}
26042604

26052605
stmt->allow_bare_named_params_ = args[0]->IsTrue();
2606+
args.GetReturnValue().Set(stmt->object());
26062607
}
26072608

26082609
void StatementSync::SetAllowUnknownNamedParameters(
@@ -2620,6 +2621,7 @@ void StatementSync::SetAllowUnknownNamedParameters(
26202621
}
26212622

26222623
stmt->allow_unknown_named_params_ = args[0]->IsTrue();
2624+
args.GetReturnValue().Set(stmt->object());
26232625
}
26242626

26252627
void StatementSync::SetReadBigInts(const FunctionCallbackInfo<Value>& args) {
@@ -2636,6 +2638,7 @@ void StatementSync::SetReadBigInts(const FunctionCallbackInfo<Value>& args) {
26362638
}
26372639

26382640
stmt->use_big_ints_ = args[0]->IsTrue();
2641+
args.GetReturnValue().Set(stmt->object());
26392642
}
26402643

26412644
void StatementSync::SetReturnArrays(const FunctionCallbackInfo<Value>& args) {
@@ -2652,6 +2655,7 @@ void StatementSync::SetReturnArrays(const FunctionCallbackInfo<Value>& args) {
26522655
}
26532656

26542657
stmt->return_arrays_ = args[0]->IsTrue();
2658+
args.GetReturnValue().Set(stmt->object());
26552659
}
26562660

26572661
void IllegalConstructor(const FunctionCallbackInfo<Value>& args) {

0 commit comments

Comments
 (0)