My plv8 function says that it can't serialize a bi...
# sql
a
My plv8 function says that it can't serialize a bigint when I try to count the number of relations in a table. How can I serialize this without getting this error thrown at me?
b
maybe cast the result to an int or int4 with ::int or ::int4?
a
I've tried casting it as an int using
::int
but that didn't work. Using cast((subquery) as int) worked 🙂
weird haha. Thanks for the hint