@@ -3188,7 +3188,7 @@ void StatementSync::All(const FunctionCallbackInfo<Value>& args) {
31883188
31893189 bool needs_reset = true ;
31903190 auto reset = OnScopeLeave ([&]() {
3191- if (needs_reset) sqlite3_reset (stmt->statement_ );
3191+ if (needs_reset) sqlite3_reset (stmt->statement_ . get () );
31923192 });
31933193 Local<Value> result;
31943194 if (StatementExecutionHelper::All (env,
@@ -3198,7 +3198,7 @@ void StatementSync::All(const FunctionCallbackInfo<Value>& args) {
31983198 stmt->use_big_ints_ )
31993199 .ToLocal (&result)) {
32003200 RESET_AND_CHECK (
3201- isolate, stmt->db_ .get (), stmt->statement_ , needs_reset, void ());
3201+ isolate, stmt->db_ .get (), stmt->statement_ . get () , needs_reset, void ());
32023202 args.GetReturnValue ().Set (result);
32033203 }
32043204}
@@ -3635,7 +3635,7 @@ void SQLTagStore::All(const FunctionCallbackInfo<Value>& args) {
36353635 Isolate* isolate = env->isolate ();
36363636 bool needs_reset = true ;
36373637 auto reset = OnScopeLeave ([&]() {
3638- if (needs_reset) sqlite3_reset (stmt->statement_ );
3638+ if (needs_reset) sqlite3_reset (stmt->statement_ . get () );
36393639 });
36403640 Local<Value> result;
36413641 if (StatementExecutionHelper::All (env,
@@ -3645,7 +3645,7 @@ void SQLTagStore::All(const FunctionCallbackInfo<Value>& args) {
36453645 stmt->use_big_ints_ )
36463646 .ToLocal (&result)) {
36473647 RESET_AND_CHECK (
3648- isolate, stmt->db_ .get (), stmt->statement_ , needs_reset, void ());
3648+ isolate, stmt->db_ .get (), stmt->statement_ . get () , needs_reset, void ());
36493649 args.GetReturnValue ().Set (result);
36503650 }
36513651}
@@ -3885,7 +3885,7 @@ void StatementSyncIterator::Next(const FunctionCallbackInfo<Value>& args) {
38853885 iter->done_ = true ;
38863886 RESET_OR_THROW (env->isolate (),
38873887 iter->stmt_ ->db_ .get (),
3888- iter->stmt_ ->statement_ ,
3888+ iter->stmt_ ->statement_ . get () ,
38893889 void ());
38903890 MaybeLocal<Value> values[] = {Boolean::New (isolate, true ), Null (isolate)};
38913891 Local<Object> result;
0 commit comments