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 2013/03/20 18:25:15 UTC

[jira] [Commented] (CAMEL-6168) SQL component will not look for parameters in header when no body in message

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

Claus Ibsen commented on CAMEL-6168:
------------------------------------

Can you be more precises what is the problem?

Line 60 is:
{code}
                            populateStatement(ps, i, expected);
{code}

It has nothing to do if body is null etc.
                
> SQL component will not look for parameters in header when no body in message
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-6168
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6168
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sql
>    Affects Versions: 2.11.0
>         Environment: 2.11-SNAPSHOT
>            Reporter: Jonas Fügedi
>            Priority: Minor
>
> Line 60 in SqlProducer checks if the body is null. This will cause any parameters in header fields not to be populated into the prepared statement. Sample scenario is with a camel-jetty enriching a response using camel-sql. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira