[
https://issues.apache.org/jira/browse/CAMEL-3907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13750706#comment-13750706
]
Zemian Deng edited comment on CAMEL-3907 at 8/27/13 3:31 AM:
-------------------------------------------------------------
Hi there,
It looks like last comment is entered a long time ago. I can try to provide a
patch for this. Let me put down my understanding first.
I am thinking to add {{useMessageBodyForSql=true|false}} to flip the current
camel-sql behavior. If it's true, then we will read SQL from body, and read
parameters from header {{CamelJdbcParameters}}. The rules for reading the
{{CamelJdbcParameters}} is should be just as if were to ready the body before,
using iterator.
Also, I assume this is only useful for producer. For consumer it's very little
use to set SQL on body.
was (Author: saltnlight5):
Hi there,
It looks like last comment is entered a long time ago. I can try to provide a
patch for this if you guys like.
I am thinking to add {{useMessageBodyForSql=true|false}} to flip the current
camel-sql behavior. If it's true, then we will read SQL from body, and read
parameters from header {{CamelJdbcParameters}}. The rules for reading the
{{CamelJdbcParameters}} is should be just as if were to ready the body before,
using iterator.
Also, I assume this is only useful for producer. For consumer it's very little
use to set SQL on body.
> Component camel-sql needs the abiliity to process sql from the body of the
> exchange
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-3907
> URL: https://issues.apache.org/jira/browse/CAMEL-3907
> Project: Camel
> Issue Type: Improvement
> Components: camel-sql
> Reporter: Heath Kesler
> Fix For: Future
>
>
> camel sql should also support the ability to add the sql statements in the
> exchange body for processing. This is linked via 3803.
--
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