Float values get casted to int while reading from DB
When reading float value from db ,it gets casted into integer.
These values were inserted into the mysql db using drizzle.
drizzle orm: 0.28.6
10 Replies
@Angelelz ?
Can you share a little bit more info? What your code looks like?
@Angelelz hope this helps
What data type would you like that float to have?
In JS
I don't really care about the datatype.
I want access the number along with decimal part. I don't want 727.4 to be rounded off to 727.
I want access the number along with decimal part. I don't want 727.4 to be rounded off to 727.
I've never seen this behavior. What driver are you using?
occuring on both old and new
Also, I could find whole number differences between actual value in db vs value read by drizzle.
Did you verify that stringifying the row is not causing the issue?
I dont doesn't look like strigify is the issue, for this.
Any update ?