From cde20a9c77a3a52c40391371afbb8d8c22dfdcd5 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Tue, 26 Apr 2022 16:50:27 +0200 Subject: [PATCH] [jOOQ/jOOQ#13488] org.jooq.SQL and manual should document plain SQL templating's capability of recognising :named parameters --- jOOQ/src/main/java/org/jooq/SQL.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/SQL.java b/jOOQ/src/main/java/org/jooq/SQL.java index cf8b5ea1c3..2e56ce6afe 100644 --- a/jOOQ/src/main/java/org/jooq/SQL.java +++ b/jOOQ/src/main/java/org/jooq/SQL.java @@ -87,9 +87,10 @@ import org.jooq.impl.DSL; *
  • JDBC bind variables: in case bind variables should be * inlined (as in {@link DSL#inline(CharSequence)}, {@link ParamType#INLINED}, * or {@link StatementType#STATIC_STATEMENT}), plain SQL query parts will - * discover question marks (?) at syntactically appropriate - * positions (outside of comments, string literals, quoted name literals) and - * substitute the appropriate bind value into the template.
  • + * discover question marks (?) and named parameters + * (:identifier) at syntactically appropriate positions, e.g. + * outside of comments, string literals, quoted name literals, and substitute + * the appropriate bind value into the template. * *

    * Instances can be created using {@link DSL#sql(String)} and overloads.