Client: In 1:1,1:n, m:n relations using OnDelete: SetNull
with referentialIntegrity = "prisma"
user.delete()
should fail, but succeeds.
#15683
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: referentialIntegrity/relationMode
Milestone
Bug description
I expected that the Prisma Client emulation (triggered by
referentialIntegrity="prisma"
) would behave like without for Prisma Client queries, but the following queries in the script succeed instead of failing.Note: Removing
onDelete: SetNull
and trying the same script errors withHow to reproduce
Expected behavior
Our
referentialIntegrity
emulation in Prisma Client ofonUpdate: SetNull
,onDelete: SetNull
should do the same as what happens on SQL databases using Foreign Keys.On all supported SQL databases, this
.delete()
throws, and we get the following database errorPrisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: