Commit 614ad42
fix: return 0 from delete() when user cancels operation (#1155)
When a user answers "no" to "Commit deletes?", the transaction is
rolled back but delete() still returned the count of rows that would
have been deleted. This was unintuitive - if nothing was deleted,
the return value should be 0.
Now delete() returns 0 when:
- User cancels at the prompt
- Nothing to delete (already worked correctly)
Fixes #1155
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent c1b36f0 commit 614ad42
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
| 980 | + | |
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
| |||
0 commit comments