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
I have a field with the type int4range[]. On insert, I receive the following exception:
org.postgresql.util.PSQLException: ERROR: syntax error at or near "any"
I set my logger to debug to examine the generated SQL. Like #1659, JOOQ is attempting to cast this "field_name" = ?::any[]
#1659 referenced Factory.field(String) as a means to stop this casting. This has been deprecated. What is the correct way in which to stop this casting?
The text was updated successfully, but these errors were encountered:
Currently, you cannot stop our automatic casting for arbitrary data types. In PostgreSQL, explicit casts are required in a variety of cases, so by default, jOOQ often generates these.
Your question: How can I prevent automatic casting?
Versions:
This question is very similar to #1659.
I have a field with the type int4range[]. On insert, I receive the following exception:
org.postgresql.util.PSQLException: ERROR: syntax error at or near "any"
I set my logger to debug to examine the generated SQL. Like #1659, JOOQ is attempting to cast this
"field_name" = ?::any[]
#1659 referenced
Factory.field(String)
as a means to stop this casting. This has been deprecated. What is the correct way in which to stop this casting?The text was updated successfully, but these errors were encountered: