© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
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
?
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
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Was this page helpful?
Yes
No
Similar Threads
Recent Announcements
Similar Threads
Numeric // Decimal Postgres types are inferred as strings and expect string as an input as well
DT
Drizzle Team / help
3y ago
uuid's being inferred as strings
DT
Drizzle Team / help
3y ago
Explicit inferred types
DT
Drizzle Team / help
3y ago