-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Description
The above code throws an error however when doing the same thing except when passing the parsers next to the queries, the error does not occur. This leads me to think there is some error with pglite handling the parsers.
Code that works fine:
const res = await db.query(itemFiltersOptions.query, itemFiltersOptions.params, {
parsers: {
[types.NUMERIC]: (value: string) => {
console.log("Parsing numeric value:", value);
return new BigDecimal(value)
},
},
});hugoattal
Metadata
Metadata
Assignees
Labels
No labels