Decimal Inferred is a string

Any idea why my decimal is being inferred as a string instead of a number?
No description
Solution:
This is correct behavior. The problem is that decimal can have a lot more decimals than a JS number. See here for more info https://github.com/drizzle-team/drizzle-orm/issues/1026#issuecomment-1694040929
GitHub
[BUG]: MySQL decimal is inferred as string · Issue #1026 · drizzl...
What version of drizzle-orm are you using? ^0.28.2 What version of drizzle-kit are you using? No response Describe the Bug const table = mysqlTable('table', { column: decimal('column...
Jump to solution
2 Replies
Solution
Angelelz
Angelelz11mo ago
This is correct behavior. The problem is that decimal can have a lot more decimals than a JS number. See here for more info https://github.com/drizzle-team/drizzle-orm/issues/1026#issuecomment-1694040929
GitHub
[BUG]: MySQL decimal is inferred as string · Issue #1026 · drizzl...
What version of drizzle-orm are you using? ^0.28.2 What version of drizzle-kit are you using? No response Describe the Bug const table = mysqlTable('table', { column: decimal('column...
Vengeance
Vengeance11mo ago
ah, okay. thank you :D
Want results from more Discord servers?
Add your server