mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 22:51:49 +00:00
ci(postgres): add the return-contract note to the over-rollback bullet
Mirror the config.json guidance in POSTGRES_COMPATIBILITY.md: when scoping a rollback, keep the function's success/None return contract -- don't return the doc that was just rolled back. (greptile #56688) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
3
.github/POSTGRES_COMPATIBILITY.md
vendored
3
.github/POSTGRES_COMPATIBILITY.md
vendored
@@ -185,7 +185,8 @@ These are auto-handled by the framework and are **not** breaks:
|
||||
full rollback is safe only when it (a) immediately re-`throw`s/`raise`s (MariaDB rolls back anyway),
|
||||
(b) has nothing successful before it (a single op), or (c) the batch is genuinely meant to be
|
||||
**atomic** (a partial result is an invalid state → rollback + mark *Failed* is correct). Otherwise use
|
||||
a **per-iteration / per-record savepoint**.
|
||||
a **per-iteration / per-record savepoint** — and keep the function's success/`None` return contract:
|
||||
do **not** return the doc when the savepoint was rolled back.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user