Re: [bug:sql] SQL Component cannot change SQL_ROW_COUNT header value

2013-12-10 Thread Claus Ibsen
Hi Yep its a little bug https://issues.apache.org/jira/browse/CAMEL-7058 On Thu, Dec 5, 2013 at 12:05 PM, Dharmendra Patel wrote: > Hi There, > I think it is a bug. > in org.apache.camel.component.sql.SqlProducer class code highlighted in > red(line no 120) could be shifted to line no 92(highlig

Re: [bug:sql] SQL Component cannot change SQL_ROW_COUNT header value

2013-12-05 Thread Dharmendra Patel
Hi There, I think it is a bug. in org.apache.camel.component.sql.SqlProducer class code highlighted in red(line no 120) could be shifted to line no 92(highlighted in green). else { boolean isResultSet = ps.execute(); if (isResultSet) { * // preserve headers

[bug:sql] SQL Component cannot change SQL_ROW_COUNT header value

2013-12-05 Thread kuro
Hi If SQL_ROW_COUNT header is already set, SQL Component cannot change SQL_ROW_COUNT header value. from("direct:test") .setHeader(SqlConstants.SQL_ROW_COUNT).constant(10) .to("sql:SELECT * FROM user WHERE FALSE") .filter(header(SqlConstants.SQL_ROW_COUNT).isEqualTo(10)) .to("log:NG");