Support for Postgresql ESCAPE keyword for use with LIKE

135 views
Skip to first unread message

Max Kremer

unread,
Oct 28, 2016, 2:58:12 PM10/28/16
to jOOQ User Group

Postgres supports setting an escape character as part of the query when using the LIKE predicate. Is there any support for this in JOOQ?


string LIKE pattern [ESCAPE escape-character]

Lukas Eder

unread,
Oct 29, 2016, 3:45:19 AM10/29/16
to jooq...@googlegroups.com
Hi Max,

Thanks for your enquiry. jOOQ doesn't specifically allow for using that escape keyword (maybe we should: https://github.com/jOOQ/jOOQ/issues/5621), you can just use the like() overload that takes that character as a second argument:

Hope this helps,
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages