Prisma incorrectly parses CRDB's FK constraint error as not available
#24072
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: cockroachdb
topic: error
topic: foreign keys
Bug description
We are seeing errors like
and was wondering whether it’s possible to surface which FK is causing this error. Some tables have multiple FKs, and
(not available)
makes it harder to narrow down which FK is throwing.When running the query manually, CRDB throws the following error, which suggests that Prisma is not parsing the FK name correctly.
How to reproduce
cockroach sql
or any other DB clientExpected behavior
I would expect to see the error
Prisma information
Fails on any schema, repro steps above.
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: