P
Prisma•2w ago
Himanshu77D

ambiguous column name: value when running prisma studio

so prisma v7 new studio aggregates data into value column
with "count" as (select cast(coalesce(count(*), 0) as text) as "value" from "public"."verification" where true) select "value", "identifier", "id", "updatedAt", "createdAt", "expiresAt", "count"."value" as "__ps_count__" from "public"."verification", "count" where true limit $1 offset 0
with "count" as (select cast(coalesce(count(*), 0) as text) as "value" from "public"."verification" where true) select "value", "identifier", "id", "updatedAt", "createdAt", "expiresAt", "count"."value" as "__ps_count__" from "public"."verification", "count" where true limit $1 offset 0
which makes me unable to use default column name "value" shouldn't all internal column names be with _ or something to not clash common wording? i was using better-auth whose verification table has value column that stores otp and other value for auth. github issue here https://github.com/prisma/prisma/issues/28675
GitHub
Error: ambiguous column name: value when running prisma studio (pri...
Bug description setup better auth 1.4.0 with prisma v7 and genrate schema db push and all and open prisma studio console throws error in studio with "count" as (select cast(coalesce(count...
4 Replies
Prisma AI Help
Prisma AI Help•2w ago
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into #ask-ai if you get antsy for a second opinion!
Igal
Igal•7d ago
Hey 👋 It's a regression, and a fix is already pending review. Sorry. 😢
Himanshu77D
Himanshu77DOP•7d ago
Oh yep saw the reply on GitHub. Thank you again.
Nurul
Nurul•4d ago
This should be fixed in 7.0.1, which is out now 🙂

Did you find this page helpful?