Enums not added to select #18335
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: enum
"type"/block `enum`
topic: jsonProtocol
Bug description
When executing a findMany without specifying specific columns, my enum fields are not included in the select ( log running)
SELECT "transmuter"."Formatters"."id", "transmuter"."Formatters"."tenant", "transmuter"."Formatters"."name", "transmuter"."Formatters"."description", "transmuter"."Formatters"."script", "transmuter"."Formatters"."version", "transmuter"."Formatters"."active", "transmuter"."Formatters"."tags", "transmuter"."Formatters"."matchers", "transmuter"."Formatters"."created_at", "transmuter"."Formatters"."created_by", "transmuter"."Formatters"."updated_at", "transmuter"."Formatters"."updated_by" FROM "transmuter"."Formatters" WHERE "transmuter"."Formatters"."active" = $1 OFFSET $2
If i specify the colums in a select it works:
Query: SELECT "transmuter"."Formatters"."id", "transmuter"."Formatters"."language" FROM "transmuter"."Formatters" WHERE "transmuter"."Formatters"."active" = $1 OFFSET $2
I changed the schema to a string and the query works as expected.
How to reproduce
Expected behavior
No response
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: