Skip to content

Commit ba33ed2

Browse files
author
Oscar Franco
authored
Merge pull request #26 from EduFrazao/rowsAffected_bugfix
2 parents 740f16c + 533747b commit ba33ed2

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)