This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-3.20.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.20.x by this push: new 47c9eb6c0ad Fix the named parameters example 47c9eb6c0ad is described below commit 47c9eb6c0adf20b1e515da2616b930792f83e536 Author: Lucia Drozdová <8985786+ldro...@users.noreply.github.com> AuthorDate: Tue Mar 14 12:01:26 2023 +0100 Fix the named parameters example --- components/camel-jdbc/src/main/docs/jdbc-component.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-jdbc/src/main/docs/jdbc-component.adoc b/components/camel-jdbc/src/main/docs/jdbc-component.adoc index becb557e91a..211296d7d63 100644 --- a/components/camel-jdbc/src/main/docs/jdbc-component.adoc +++ b/components/camel-jdbc/src/main/docs/jdbc-component.adoc @@ -98,7 +98,7 @@ Notice in the example above we set two headers with constant value from("direct:projects") .setHeader("lic", constant("ASF")) .setHeader("min", constant(123)) - .setBody("select * from projects where license = :?lic and id > :?min order by id") + .setBody(simple("select * from projects where license = :?lic and id > :?min order by id")) .to("jdbc:myDataSource?useHeadersAsParameters=true") ----