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
This is a bug in Prisma Studio . When " in present as a value in String field , Prisma studio fails to handle it and " acts in a similar manner to how it acts in a SQL Injection and the query fails. This issue as per my knowledge only exists in Prisma Studio.
How to reproduce
Create any kind of model in Prisma schema file with String field.
Open the model in Prisma Studio and try to add or update the field of type String with an " in it.
It Shows an error as shown in Prisma information section of this bug report.
Expected behavior
No response
Prisma information
Schema
model User {
id Int @id @default(autoincrement())
name String
picture String?
email String @unique
password String?
email_verified Boolean @default(false)
}
Hey @ketanip, this should be fixed in the latest dev version now (npm i prisma@dev @prisma.client@dev)!
Do note that dev versions may contain unannounced breaking changes, so I wouldn't recommend using it in the long run for your app!
This will also make it to the next stable version of the Prisma CLI (Scheduled for July 27th). Let me know if this is still an issue!
Bug description
This is a bug in
Prisma Studio
. When"
in present as a value inString
field , Prisma studio fails to handle it and"
acts in a similar manner to how it acts in a SQL Injection and the query fails. This issue as per my knowledge only exists in Prisma Studio.How to reproduce
schema
file withString
field.String
with an"
in it.Prisma information
section of this bug report.Expected behavior
No response
Prisma information
Schema
Error
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: