camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10431) camel-elsql - Does not read named parameter from header properties
Date Tue, 01 Nov 2016 15:43:58 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15625749#comment-15625749
] 

ASF GitHub Bot commented on CAMEL-10431:
----------------------------------------

GitHub user osmman opened a pull request:

    https://github.com/apache/camel/pull/1241

    CAMEL-10431: camel-elslq Fix lookup for named parameter from headers

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/osmman/camel camel-elsql

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1241.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1241
    
----
commit 1028021b3821a67ef7dfa2d7949f2c9a397dc87d
Author: Tomas Turek <tturek@redhat.com>
Date:   2016-11-01T15:26:05Z

    CAMEL-10431: camel-elslq Fix lookup for named parameter from headers

----


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

Mime
View raw message