[ 
https://issues.apache.org/jira/browse/CAMEL-2939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14277085#comment-14277085
 ] 

Gérald Quintana commented on CAMEL-2939:
----------------------------------------

Tested with the URI "cql://localhost/camel_ks?cql=select login, first_name, 
last_name from camel_user" and a body containing an empty collection 
(Collections.emptyList()), and it works.

Yet I understand your problem, what kind of solution would you suggest to 
disable parameter binding when it's not required? 
* Test if body contains some special value (null, empty array, empty 
collection...)?
* Test if header/URI contains some special flag to disable parameter binding?
* Parse CQL statement to check whether there are "?" or ":paramName" tokens?
* Introduce a pluggable "parameter binding strategy"?


> Cassandra component for Camel http://github.com/ticktock/camel-cassandra
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-2939
>                 URL: https://issues.apache.org/jira/browse/CAMEL-2939
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.3.0
>            Reporter: Scott Clasen
>            Assignee: Claus Ibsen
>             Fix For: 2.15.0
>
>         Attachments: camel-cassandra.tar.gz
>
>
> Take a look at http://github.com/ticktock/camel-cassandra, its a Cassandra 
> component for Camel. 
> Please pull into the camel codebase if its up to snuff, or let me know what I 
> need to do to get it there



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to