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

Nicola Ferraro resolved CAMEL-11106.
------------------------------------
    Resolution: Fixed

> camel-sql - allow using the $simple{} syntax for query arguments
> ----------------------------------------------------------------
>
>                 Key: CAMEL-11106
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11106
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sql
>    Affects Versions: 2.18.3
>            Reporter: Nicola Ferraro
>            Assignee: Nicola Ferraro
>             Fix For: 2.18.4
>
>
> The $simple{} syntax is useful to avoid clash with spring property 
> placeholders. The camel-sql component does not recognize it, so when users 
> create endpoints like:
> {code}
> <to id="_to1" uri="sql:select * from accounts where customerid = 
> :#${header.xxx}?dataSource=dataSource"/>
> {code}
> I.e. use the id field and the "${header.xxx}" syntax, spring tries to find a 
> property named "header.xxx" and crashes.
> We should allow writing:
> {code}
> <to id="_to1" uri="sql:select * from accounts where customerid = 
> :#$simple{header.xxx}?dataSource=dataSource"/>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to