jermahs
PPrisma
•Created by jermahs on 10/14/2024 in #help-and-questions
MSSQL Include (Joins) Seem Case Sensitive
Observing the documentation, https://www.prisma.io/docs/orm/prisma-client/queries/case-sensitivity#microsoft-sql-server-provider and my knowledge of MSSQL I know that MSSQL is case insensitive.
However, it has become apparent that prisma is some how forcing case sensitivity when using an
include
on a relationship. We observed this by having some legacy data that was lower case in one spot and a different case in another despite it being a FK. When doing a raw query this works as expected, but through prisma it fails with a null not allowed error message.
In our legacy production db we have a value in UserInfo.Username
as "someuser", but the Locations.relatedUser
is "SomeUser". Don't ask me why, I'm not happy with the casing issue within my database to begin with : /
If you jsut run a raw query from SSMS or other query editor, then the following works
Unfortunately, if you run a query in prisma such as
then you'll get the following error: "PrismaClientUnknownRequestError"
Please help! We can obviously modify our data in our database, but we have some weird legacy requirements that I'd rather not contend with tat this time. Any help would be greatly appreciated!
Thanks in advance!2 replies
PPrisma
•Created by jermahs on 5/28/2024 in #help-and-questions
Does Accelerate support MSSQL?
Does Prisma Accelerate support MSSQL? I don't know if I set it up right, but I ge the following error, when I try to configure MSSQL in accelerate and then setup the client/edge in my application:
2 replies
PPrisma
•Created by jermahs on 4/12/2024 in #help-and-questions
SOLVED: Create w/ sub create: Subquery returned more than 1 value
2 replies