© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
3 replies
Vengeance

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
[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...
[BUG]: MySQL `decimal` is inferred as string · Issue #1026 · drizzl...
Jump to solution
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Numeric // Decimal Postgres types are inferred as strings and expect string as an input as well
Drizzle TeamDTDrizzle Team / help
3y ago
uuid's being inferred as strings
Drizzle TeamDTDrizzle Team / help
3y ago
Explicit inferred types
Drizzle TeamDTDrizzle Team / help
3y ago