Prisma issue (Nov 25): Prisma MariaDB updateMany Fails When Filtered Through Self-Relation
Is it fixed? Not yet.
Ongoing since Nov 25, 15:39 UTC. First reported Nov 25, 15:39 UTC. Not on the vendor’s status page yet.
What happened
Prisma's updateMany on MariaDB fails when the where clause filters through a self-relation because the generated derived table (tmp_subselect_table) references the outer table, resulting in a missing column error. The issue affects Prisma versions 7.10.1 and 6.19.2.
What caused it?
Prisma wraps the relation subquery in a derived table (tmp_subselect_table) to avoid MySQL error 1093, which incorrectly references the outer UPDATE target and causes MariaDB to report that the column does not exist.
Source: github.com
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixOutage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
MariaDB: `updateMany` filtered through a self-relation fails — derived table `tmp_subselect_table` references the outer table
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First reportMariaDB: `updateMany` filtered through a self-relation fails — derived table `tmp_subselect_table` references the outer table(opens GitHub issue in a new tab)
Package and version prisma 7.10.1, @prisma/client 7.10.1, @prisma/adapter-mariadb 7.10.1 (also reproduces on 6.19.2 with the native engine) What happened? On MariaDB, updateMany whose where goes through a self-relation of the updated model (parent: { … }) fails: The column Node.parentId does not exist in the current database. Prisma wraps the relation subquery in a derived table (tmp_subselect_table, to avoid MySQL error 1093), and the derived table references the outer UPDATE target. MySQL…
by nalikhanoff 0upvotes 1comments
Prisma issue FAQ
What happened in the Prisma issue, and why?
Ongoing since Nov 25, 15:39 UTC. The cause: Prisma wraps the relation subquery in a derived table (tmp_subselect_table) to avoid MySQL error 1093, which incorrectly references the outer UPDATE target and causes MariaDB to report that the column does not exist.
What is affected by the Prisma issue?
Prisma (versions: 7.10.1, 6.19.2).
When did the Prisma issue start and end?
It started Nov 25, 15:39 UTC and is still ongoing (1 d 1 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.