camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devendra Khanolkar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6157) Parametrized queries in JDBC component
Date Tue, 28 May 2013 08:12:23 GMT

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

Devendra Khanolkar commented on CAMEL-6157:
-------------------------------------------

Claus,
Can you please review the attached test and the JdbcProducer.java.
I had to incorporate the DefaultPreparedStatementStrategy class into this component.
I'm just trying to figure out if this is what you were referring to when you said similar
convention as the sql component.

Thanks
-Dev
                
> Parametrized queries in JDBC component
> --------------------------------------
>
>                 Key: CAMEL-6157
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6157
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jdbc
>            Reporter: Henryk Konsek
>             Fix For: Future
>
>         Attachments: JdbcParameterizedQueryTest.java
>
>
> Juan pointed that currently it is difficult to create SQL-injection safe query with JDBC
component. We could provide option to send query parameters via message header.
> {code}
> from("direct:sql").to("jdbc:testDB");
> ...
> producerTemplate.sendBodyAndHeader("direct:sql", "JDBC_PARAMETERS", "fooValue", "insert
into foo values (?)");
> {code}
> [1] http://camel.465427.n5.nabble.com/Dinamyc-SQL-with-arguments-tp5729003.html

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

Mime
View raw message