Decimal Inferred is a string

Any idea why my decimal is being inferred as a string instead of a number?
vengeance2023-11-10_at_10.22.36.png
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
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...
Was this page helpful?