[
https://issues.apache.org/jira/browse/CAMEL-9711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-9711.
--------------------------------
Resolution: Fixed
It was a bit tough to implement as we need to detect the in parameter during
preparing the query, and then calculate how many ? to insert in the query. And
then map those values correct later.
But got an implementation that works.
> camel-sql - Allow to use IN queries where the parameter is expanded
> -------------------------------------------------------------------
>
> Key: CAMEL-9711
> URL: https://issues.apache.org/jira/browse/CAMEL-9711
> Project: Camel
> Issue Type: Improvement
> Components: camel-sql
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.17.0
>
>
> So you can do a
> select * from foo where bar IN :#myValues
> And then have myValues being expanded into a list of values separated by
> comma. The trick is to know if the values should be quoted or not, eg
> IN (1, 2, 3)
> or
> IN ('1', '2', '3')
> So we may need a way to specify that. Or defer if its numbering then its not
> quoted, and non numeric is quoted. But then you may want numeric quoted still.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)