Closed justinhandley closed 8 months ago
What query exactly are you executing?
return this.data.transaction.findMany({
take: input?.take ?? 10,
skip: input?.skip ?? 0,
orderBy: orderBy,
where: { amount: { equals: input.amount } }
...select,
})
I was not able to reproduce this on Prisma v4.6.1
; MacOs -- test repo
Do you maybe have a minimal reproduction where this happens? @justinhandley
Hey @justinhandley, a few months have passed since the latest comment, do you please have any reproduction to share with us?
I think that based on your comment I upgraded my prisma version and the issue went away - closing this for now.
Bug description
When you are searching a postgres database with a table defined as a float value:
{ amount: { equals: input.amount } }
This returns results that match whole numbers, but not numbers with any decimal places.
So if I type in '360' it will return all numbers that are exactly 360 but if I type in '360.6' it won't return anything, even if there is a value of 360.6 in the database.
How to reproduce
Expected behavior
I would expect to get the number back
Prisma information
Environment & setup
Prisma Version