camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stéphane Deraco <stephane.der...@gmail.com>
Subject Re: Wiki access
Date Mon, 11 Aug 2014 06:56:07 GMT
Hi Charles,

Thanks for your answer. In fact, the code example uses :#, but the text
above says #:

"From Camel 2.11 onwards you can use named parameters by using #:name style
as shown"

Regards,
Stéphane


2014-08-11 7:58 GMT+02:00 Charles Moulliard <ch007m@gmail.com>:

> Hi Stéphane,
>
> There is no typo error. The documentation refers to the fact that we can
> pass named_parameters like it is showed in the example :
>
> .to("sql:select * from projects where license = :#lic and id > :#min order
> by id")
> from("sql:select * from projects order by id?consumer.onConsume=delete from
> projects where id = :#id")
>  .to("sql:select * from projects where license = :#lic order by id")
>
> To avoid any ambiguities, we could improve the wording (:#name -->
> :#name_of_the_parameter")
>
> Regards,
>
>
>
> On Sat, Aug 9, 2014 at 2:53 PM, Stéphane Deraco <stephane.deraco@gmail.com
> >
> wrote:
>
> > Hi,
> >
> > Could I have wiki rights in order to modify the SQL Component page. I
> think
> > there is a typo for named parameters: the text says to use #:name style,
> > whereas the code just below says :#id (which is the one correct according
> > to SqlProducerNamedParameterTest.java)
> >
> > I have a confirmed ICLA (Stéphane Deraco).
> >
> > Best regards
> >
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message