Prisma SQL Runtime Sends COMMIT After ROLLBACK on Untimed Transactions
Is it fixed? Not yet.
Ongoing since Nov 17, 23:35 UTC. First reported Nov 17, 23:35 UTC.
What happened
Calling commit() after rollback() on an untimed raw transaction incorrectly sends a COMMIT command to the database driver even though the transaction has already ended. This causes databases like Postgres to respond with a warning that no transaction is in progress.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
bug(sql-runtime): commit() after rollback() on an untimed transaction still sends COMMIT
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportbug(sql-runtime): commit() after rollback() on an untimed transaction still sends COMMIT(opens GitHub issue in a new tab)
What happens On a raw transaction with no timeout, calling commit() after rollback() sends COMMIT to the driver: const connection = await db.connection(); const tx = await connection.transaction(); await tx.execute(insertRow); await tx.rollback(); // sends ROLLBACK await tx.commit(); // sends COMMIT as well The rollback has already ended the transaction, so the COMMIT runs on the connection with no transaction open. Postgres answers it with a warning ("there is no transaction in progress") and…
by wmadden-electric 0upvotes 1comments
FAQ
What happened in the Prisma issue?
Calling commit() after rollback() on an untimed raw transaction incorrectly sends a COMMIT command to the database driver even though the transaction has already ended. This causes databases like Postgres to respond with a warning that no transaction is in progress.
What is affected by the Prisma issue?
Prisma.
When did the Prisma issue start and end?
It started Nov 17, 23:35 UTC and is still ongoing (1 d 5 h so far). This page updates as it develops.
How do I get alerts for Prisma?
Subscribe to the Prisma RSS feed for every new Prisma incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Prisma is down. Prisma feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.