Nicola Ferraro created CAMEL-11106:
--------------------------------------

             Summary: 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
            Reporter: Nicola Ferraro
            Assignee: Nicola Ferraro


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