This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 075a5ac  DOCS-clarified-update-asHeaderOperation-formatted-tables
     new c503927  Merge pull request #3176 from 
alex-hat-de-rojo/DOCS-sql-component-update-correction
075a5ac is described below

commit 075a5ac8e2bbaf5ced07f8ded4782e19b9791ce8
Author: Alex Mansell <[email protected]>
AuthorDate: Tue Sep 17 19:40:21 2019 +0100

    DOCS-clarified-update-asHeaderOperation-formatted-tables
---
 components/camel-sql/src/main/docs/sql-component.adoc | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/components/camel-sql/src/main/docs/sql-component.adoc 
b/components/camel-sql/src/main/docs/sql-component.adoc
index 99d027d..fe3c411 100644
--- a/components/camel-sql/src/main/docs/sql-component.adoc
+++ b/components/camel-sql/src/main/docs/sql-component.adoc
@@ -257,8 +257,9 @@ more dynamic as the SQL query is from the message body.
 For `select` operations, the result is an instance of
 `List<Map<String, Object>>` type, as returned by the
 
http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/jdbc/core/JdbcTemplate.html#queryForList(java.lang.String,%20java.lang.Object%91%93)[JdbcTemplate.queryForList()]
-method. For `update` operations, the result is the number of updated
-rows, returned as an `Integer`.
+method. For `update` operations, a `NULL` body is returned as the `update` 
operation is only set as a header and never as a body.
+
+NOTE: See <<sql-component-header-values, Header values>> for more information 
on the `update` operation.
 
 By default, the result is placed in the message body.  If the
 outputHeader parameter is set, the result is placed in the header.  This
@@ -293,13 +294,13 @@ from("direct:withSplitModel")
         .end();
 ----
  
-
+[[sql-component-header-values]]
 == Header values
 
 When performing `update` operations, the SQL Component stores the update
 count in the following message headers:
 
-[width="100%",cols="10%,90%",options="header",]
+[cols="1,3"]
 |===
 |Header |Description
 
@@ -320,7 +321,7 @@ When performing `insert` operations, the SQL Component 
stores the rows
 with the generated keys and number of these rown in the following
 message headers:
 
-[width="100%",cols="10%,90%",options="header",]
+[cols="1,3"]
 |===
 |Header |Description
 
@@ -542,7 +543,7 @@ You have a few options to tune the
 `org.apache.camel.processor.idempotent.jdbc.JdbcMessageIdRepository` for
 your needs:
 
-[width="100%",cols="10%,10%,80%",options="header",]
+[cols="1,1,2"]
 |===
 |Parameter |Default Value |Description
 

Reply via email to