You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Rodrigo Vieira Couto (JIRA)" <ji...@apache.org> on 2012/06/08 00:02:23 UTC

[jira] [Created] (CAMEL-5344) SqlComponent doesn't execute parameter replacement with header sent queries

Rodrigo Vieira Couto created CAMEL-5344:
-------------------------------------------

             Summary: SqlComponent doesn't execute parameter replacement with header sent queries
                 Key: CAMEL-5344
                 URL: https://issues.apache.org/jira/browse/CAMEL-5344
             Project: Camel
          Issue Type: Bug
          Components: camel-sql
    Affects Versions: 2.8.4
            Reporter: Rodrigo Vieira Couto


If you pass a query using '#' in its body, through the CamelSqlQuery header, it doesn't get translated.

The replacement happens on SqlComponent only considering queries placed on the endpoint's URI.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5344) SqlComponent doesn't execute parameter replacement with header sent queries

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5344.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s: 2.10.0
         Assignee: Claus Ibsen

This is by design, the header is using a proper SQL query with ? as placeholders. This is also what's being documented on the sql component page.
                
> SqlComponent doesn't execute parameter replacement with header sent queries
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-5344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5344
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sql
>    Affects Versions: 2.8.4
>            Reporter: Rodrigo Vieira Couto
>            Assignee: Claus Ibsen
>             Fix For: 2.10.0
>
>
> If you pass a query using '#' in its body, through the CamelSqlQuery header, it doesn't get translated.
> The replacement happens on SqlComponent only considering queries placed on the endpoint's URI.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira