Skip to content

[Bug]: SAVEPOINT unimplemented blocks Prisma nested/interactive transactions (confirmed v3.0.11 & 4.0-dev) #24736

Closed

Description

@dengn

Summary

SAVEPOINT / ROLLBACK TO SAVEPOINT / RELEASE SAVEPOINT are not implemented (20101 ... savepoint has not been implemented yet). Prisma uses savepoints internally for nested operations inside interactive transactions, so those flows fail.

Related (already tracked): #23125, #24498, #20287. Filing the Prisma-specific impact and confirming it still reproduces on prod v3.0.11 and 4.0-dev nightly-0bfda604.

Steps to Reproduce

START TRANSACTION;
INSERT INTO t (id) VALUES (1);
SAVEPOINT sp1;
-- ERROR 20101 (HY000): internal error: savepoint has not been implemented yet. please rollback the transaction.

Prisma impact

Top-level $transaction (batch, interactive, isolationLevel, rollback-on-throw) all work. Only savepoint-based nesting (nested writes / nested $transaction within an interactive transaction) is affected.

Expected Behavior

Support SAVEPOINT (MySQL standard) so nested transactional operations can roll back partially.


Found during deep Prisma ORM (v5.22) compatibility testing; reproduced on prod 8.0.30-MatrixOne-v3.0.11 and nightly-0bfda604.

Activity

  1. added
    kind/bug
    on May 31, 2026
  2. added
    severity/s2
    on Jun 2, 2026
  3. added theissue type on Jun 2, 2026
  4. added
    priority/p2
    and removed
    kind/bug
    severity/s2
    on Jun 2, 2026
  5. added this to the Backlog milestone on Jun 2, 2026
  6. XuPeng-SH commented on Jun 2, 2026

    @XuPeng-SH
    Contributor

    backlog

  7. added
    severity/s1
    on Jun 30, 2026
  8. modified the milestones: Backlog, MO-202607 on Jun 30, 2026
  9. XuPeng-SH commented on Aug 1, 2026

    @XuPeng-SH
    Contributor

    duplicate with #23125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority/p2severity/s1

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions