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
This is because the Integer[] array component type information is lost when passing a List<Integer> to unnest(), so jOOQ generates
cast('{"1","2","3"}'asany[])
I cannot think of a thorough fix. PostgreSQL arrays need an array type, and any[] is not supported in SQL (it is in pgplsql, I think). So a reasonable thing to do might be to pick the array type from the first element, hoping there is such a first element.
The text was updated successfully, but these errors were encountered:
This query doesn't work on PostgreSQL, when inlining bind variables:
This is because the
Integer[]
array component type information is lost when passing aList<Integer>
tounnest()
, so jOOQ generatesI cannot think of a thorough fix. PostgreSQL arrays need an array type, and
any[]
is not supported in SQL (it is in pgplsql, I think). So a reasonable thing to do might be to pick the array type from the first element, hoping there is such a first element.The text was updated successfully, but these errors were encountered: