studio icon indicating copy to clipboard operation
studio copied to clipboard

Update an enum array still doesnt work

Open RVBastien opened this issue 7 months ago • 1 comments

When updating an array of enum via studio :

Update Operation failed

When trying to see what is the problem in the console button, no error details at all.

I am using postgresql adapter.

Prisma versions : "prisma": "^7.7.0", "@prisma/adapter-pg": "^7.7.0", "@prisma/client": "^7.7.0", "@prisma/engines": "7.7.0",

RVBastien avatar Apr 08 '26 08:04 RVBastien

Hi @RVBastien — thanks for the report, and sorry for the frustrating empty console. Confirmed and fixed in #1546: enum arrays were being sent as raw JS array parameters, which drivers can't serialize for user-defined element types, so Postgres rejected them with a malformed array literal error. Array values are now compiled as explicit array[...] constructors with a proper enum-array cast, which sidesteps driver serialization entirely. We also fixed a small error-deserialization bug we found while tracing why the console showed no details.

sorenbs avatar Jul 18 '26 07:07 sorenbs