dsf_2
DTDrizzle Team
•Created by dsf_2 on 7/31/2024 in #help
Updating multiple rows causes type error
I'm following the guide posted here https://orm.drizzle.team/learn/guides/update-many-with-different-value regarding updating multiple rows at once.
My data is similar, but not the same:
The raw output is:
Unfortunately, this causes a type error when being submitted:
I assume this is because the sql is being converted to something like this:
therefore it's being recognized as a string whenever it's submitted to the database. But I could be wrong.
Is it possible to cast this value somehow or otherwise inform Drizzle that it's supposed to be an integer and not a string?
12 replies