You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{types}from'pg'// Use BigInt for 64-bit integers.types.setTypeParser(20,BigInt)// Use BigInt[] for 64-bit integer arrays.constparseBigIntArray=types.getTypeParser(1016)types.setTypeParser(1016,text=>parseBigIntArray(text).map(value=>value===null ? value : BigInt(value)))
I have the following models and tables:
When trying to do a related query:
Produces the incorrect sql, the number is incorrectly quoted in the
in
clauseChanging the columns in the model to be
number
doesn't help either since the bigint id is converted to a string for returned model in the first query.The text was updated successfully, but these errors were encountered: