Skip to content

[FIXED in 4.4.0] sql.begin() resolves although COMMIT rolled the transaction back #30

Closed

Description

@okomarov

sql.begin() can resolve although PostgreSQL rolled the transaction back.

Reproduced on b66023e during the #28 review: after DEALLOCATE ALL (or DISCARD ALL, as some poolers run), the driver's own prepared commit fails at Bind with 26000. That error aborts the transaction, the driver retries the commit, and PostgreSQL answers a COMMIT in an aborted transaction with ROLLBACK. sql.begin(s => s\insert ...`)resolves withcount = 1and the table has 0 rows. Stalebegin, rollbackandsavepoint` statements fail the same way.

Two fixes, both in 4.4.0:

Activity

  1. added a commit that references this issue on Oct 11, 2026
  2. moved this to Shipped in Roadmapon Oct 15, 2026
  3. added
    area: transactions
    bug
    on Oct 16, 2026
  4. changed the title [-]sql.begin() resolves although COMMIT rolled the transaction back[/-] [+][FIXED in 4.4.0] sql.begin() resolves although COMMIT rolled the transaction back[/+] on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: transactionsbug

    Type

    No type

    Projects

    • Status
      Shipped

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions