You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user-level advisory lock functions GET_LOCK / RELEASE_LOCK / IS_FREE_LOCK are not implemented. This blocks Prisma Migrate, which acquires a GET_LOCK advisory lock before applying any migration.
Related: #23036 (closed, "MySQL function not implemented: GET_LOCK") — still reproduces; also likely covered by the batch issue #24486.
ERROR 20105 (HY000): not supported: function or operator 'get_lock'
ERROR 20105 (HY000): not supported: function or operator 'is_free_lock'
ERROR 20105 (HY000): not supported: function or operator 'get_lock'
Prisma impact
prisma migrate deploy fails immediately:
Error: not supported: function or operator 'get_lock'
0: schema_core::state::ApplyMigrations
Workaround: set PRISMA_SCHEMA_DISABLE_ADVISORY_LOCK=1. With the flag, migrate deploy succeeds and creates all tables. But the default path is broken and surprising.
Expected Behavior
MySQL implements these named locks (return 1 / 0 / NULL). Implementing them (or accepting them as no-ops) would let Prisma Migrate work out of the box.
Test context — Found while testing Prisma ORM (v5.22) compatibility against MatrixOne. Reproduced on both:
Prod cloud — 8.0.30-MatrixOne-v3.0.11
4.0 dev line — nightly-0bfda604 (select version() → 8.0.30-MatrixOne-v)
(Results on the older v3.0.5 are intentionally omitted.)
Activity
jiangxinmeng1 commentedon Jul 28, 2026
fixed by #25019