[BUG]: decimal fields serialize to number (instead of string) when added in a with
query
#3943
Open
1 task done
Labels
with
query
#3943
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.38.2
What version of
drizzle-kit
are you using?0.30.1
Other packages
No response
Describe the Bug
Summary
If you have a Postgres column with type
decimal()
, it is correctly serialised to typestring
in JavaScript.However, if you load a referenced table that has a
decimal
column, it is incorrectly serialised to typenumber
in JavaScript.Full reproduction
This is the issue:
Setup code used here:
The text was updated successfully, but these errors were encountered: