Skip to content

Commit 533747b

Browse files
committed
Bugfix
- Small bugfix on the "rowsAffected" property, that was collecting all changes on database instance since its opening instead of the current statement.
1 parent 740f16c commit 533747b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/sequel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ SequelResult sequel_execute(jsi::Runtime &rt, string const dbName, string const
414414
jsi::Object res = jsi::Object(rt);
415415
res.setProperty(rt, "rows", move(rows));
416416

417-
int changedRowCount = sqlite3_total_changes(db);
417+
int changedRowCount = sqlite3_changes(db);
418418
res.setProperty(rt, "rowsAffected", jsi::Value(changedRowCount));
419419

420420
// row id has nothing to do with the actual uuid/id of the object, but internal row count

0 commit comments

Comments
 (0)