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/afcfe675
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/afcfe675
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/afcfe675

Branch: refs/heads/camel-2.19.x
Commit: afcfe6750ac93785ea34f1939272ce031b19f6c7
Parents: 0034b99
Author: aldettinger <[email protected]>
Authored: Wed Sep 6 17:13:47 2017 +0200
Committer: Claus Ibsen <[email protected]>
Committed: Wed Sep 6 20:34:39 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/afcfe675/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