-
For instance, we have a email domain defined as:
The domain then looks like:
I would like to tell CitextBinding that it shall also include the schema in its cast since otherwise I run into:
Any idea? (same same with CitextArrayBinding) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm assuming you're referring to So, putting You don't have to use the out of the box |
Beta Was this translation helpful? Give feedback.
I'm assuming you're referring to
org.jooq.postgres.extensions.bindings.CitextBinding
, which in turn assumes that thecitext
type is on thesearch_path
:https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH
So, putting
myschema
on thesearch_path
would be one option in your case.You don't have to use the out of the box
CitextBinding
, you can bring your own, which is schema aware. I don't think there's much value in adding schema mapping to the binding at this point. It seems like too complex a solution for too simple a problem (which people usually solve with thesearch_path
).