Repository: camel
Updated Branches:
  refs/heads/camel-2.19.x 0034b993e -> afcfe6750
  refs/heads/master 7b377a155 -> a5fe4f5d8


CAMEL-11726: Fixed the Elsql producer inconsistent behavior compared to sql 
component producer


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a5fe4f5d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a5fe4f5d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a5fe4f5d

Branch: refs/heads/master
Commit: a5fe4f5d8fcb74a5ec054f61153f714c2983b689
Parents: 7b377a1
Author: aldettinger <[email protected]>
Authored: Wed Sep 6 17:13:47 2017 +0200
Committer: Claus Ibsen <[email protected]>
Committed: Wed Sep 6 20:27:37 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/elsql/ElsqlProducer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a5fe4f5d/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlProducer.java
----------------------------------------------------------------------
diff --git 
a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlProducer.java
 
b/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlProducer.java
index 4575844..58feb1d 100644
--- 
a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlProducer.java
+++ 
b/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlProducer.java
@@ -169,7 +169,7 @@ public class ElsqlProducer extends DefaultProducer {
                         } else {
                              // if we are here, there isResultSet is false. 
This can happen only if we are doing an update operation or there is no result.
                              // we can simply add the updateCount in this case.
-                            
exchange.getOut().setHeader(SqlConstants.SQL_UPDATE_COUNT, ps.getUpdateCount());
+                            
exchange.getIn().setHeader(SqlConstants.SQL_UPDATE_COUNT, ps.getUpdateCount());
                         }
                     }
                     } finally {

Reply via email to