[ 
https://issues.apache.org/activemq/browse/CAMEL-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Luo updated CAMEL-1534:
---------------------------

    Attachment: Camel-1534.patch

Hi, Claus

Here is the patch for this issue. I added an option "routeEmptyResultSet" onto 
polling consumer so it will not send an empty resultset to the next hop by 
default. 

However, if an iterator is used ("useIterator=true"), the "routeEmptyResultSet" 
won't have any effect as the empty list will not contain any individual object 
at all.

> camel-ibatis - option to filter out empty select results
> --------------------------------------------------------
>
>                 Key: CAMEL-1534
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1534
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ibatis
>    Affects Versions: 1.6.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: Camel-1534.patch
>
>
> The camel-ibatis component routes any result from the database so if a SELECT 
> query returns 0 rows Camel will route an exchange.
> We should add an option to iBatis to allow end users to filter out empty 
> results so Camel only route an Exchange if there are > 0 rows.
> See nabble:
> http://www.nabble.com/IBatis-component-inconsistency-td23045297.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to