Commit b648d37 1 parent e577618 commit b648d37 Copy full SHA for b648d37
File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 90
90
V(cached_data_string, "cachedData") \
91
91
V(cache_key_string, "cacheKey") \
92
92
V(change_string, "change") \
93
+ V(changes_string, "changes") \
93
94
V(channel_string, "channel") \
94
95
V(chunks_sent_since_last_write_string, "chunksSentSinceLastWrite") \
95
96
V(clone_unsupported_type_str, "Cannot clone object of unsupported type.") \
215
216
V(jwk_y_string, "y") \
216
217
V(kill_signal_string, "killSignal") \
217
218
V(kind_string, "kind") \
219
+ V(last_insert_rowid_string, "lastInsertRowid") \
218
220
V(length_string, "length") \
219
221
V(library_string, "library") \
220
222
V(line_number_string, "lineNumber") \
Original file line number Diff line number Diff line change @@ -694,10 +694,6 @@ void StatementSync::Run(const FunctionCallbackInfo<Value>& args) {
694
694
}
695
695
696
696
Local<Object> result = Object::New (env->isolate ());
697
- Local<String> last_insert_rowid_string =
698
- FIXED_ONE_BYTE_STRING (env->isolate (), " lastInsertRowid" );
699
- Local<String> changes_string =
700
- FIXED_ONE_BYTE_STRING (env->isolate (), " changes" );
701
697
sqlite3_int64 last_insert_rowid =
702
698
sqlite3_last_insert_rowid (stmt->db_ ->Connection ());
703
699
sqlite3_int64 changes = sqlite3_changes64 (stmt->db_ ->Connection ());
@@ -713,9 +709,12 @@ void StatementSync::Run(const FunctionCallbackInfo<Value>& args) {
713
709
}
714
710
715
711
if (result
716
- ->Set (env->context (), last_insert_rowid_string, last_insert_rowid_val)
712
+ ->Set (env->context (),
713
+ env->last_insert_rowid_string (),
714
+ last_insert_rowid_val)
717
715
.IsNothing () ||
718
- result->Set (env->context (), changes_string, changes_val).IsNothing ()) {
716
+ result->Set (env->context (), env->changes_string (), changes_val)
717
+ .IsNothing ()) {
719
718
return ;
720
719
}
721
720
You can’t perform that action at this time.
0 commit comments