You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/11/01 16:11:58 UTC

[jira] [Resolved] (CAMEL-10431) camel-elsql - Does not read named parameter from header properties

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

Claus Ibsen resolved CAMEL-10431.
---------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.19.0
                   2.18.1

Thanks for the PR

> camel-elsql - Does not read named parameter from header properties
> ------------------------------------------------------------------
>
>                 Key: CAMEL-10431
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10431
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-elsql
>    Affects Versions: 2.18.0
>            Reporter: Tomas Turek
>            Assignee: Claus Ibsen
>             Fix For: 2.18.1, 2.19.0
>
>
> Camel-elsql could not lookup for parameters from message headers. Problem is here https://github.com/apache/camel/blob/camel-2.18.0/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlSqlMapSource.java#L70
> Sample route:
> {code}
> from("direct:projects")
>   .setHeader("lic", constant("ASF"))
>   .setHeader("min", constant(123))
>   .to("elsql:projects:com/foo/projects.elsql")
> {code}
> ElSql:
> {code}
> @NAME(projects)
>   SELECT *
>   FROM projects
>   WHERE license = :lic AND id > :min
>   ORDER BY id
> {code}



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