Queryraw condition joining
I need to use a procedure and then filter on this from a sqlserver database. I am having some issues constructing a query that is dynamic and safe. Prisma.join is only for joining values, but how do I join conditions?
What makes it complicated is that the conditions are dynamic filters. Some some may be present or not.
Example
2 Replies
TTT SELECT * FROM #TempResults WHERE bookingCount > ? AND (recentZIPCode LIKE ? OR recentZIPCode LIKE ?) [ '2', '22%', '21%' ]
⨯ TypeError: Expected 4 strings to have 3 values
What does "Expected 4 strings to have 3 values" even mean...?
Bump
Is this impossible?
Bump
Bump
Bump
I added a playground for you to explore and experiment with this issue
https://github.com/Nubebuster/prisma-raw
GitHub
GitHub - Nubebuster/prisma-raw
Contribute to Nubebuster/prisma-raw development by creating an account on GitHub.