Available in versions: Dev (3.20) | Latest (3.19)

Dollar quoted string token

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

Occasionally, when using the SQLDialect.POSTGRES dialect, jOOQ renders dollar quoted string literals, in particular for anonymous blocks:

DO $$

The point of these string literals is to avoid having to escape all ' characters in procedural content, or elsewhere.

Sometimes, the $$ token may conflict with string contents, however, such as an identifier. In that case, users can override the delimiter token between the $$ and provide their own, e.g. $token$.

Example configuration

Settings settings = new Settings()


Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo