You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Nicola Ferraro (JIRA)" <ji...@apache.org> on 2017/04/04 12:49:41 UTC

[jira] [Updated] (CAMEL-11106) camel-sql - allow using the $simple{} syntax for query arguments

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

Nicola Ferraro updated CAMEL-11106:
-----------------------------------
    Component/s: camel-sql

> 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
>            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)