RE: camel sql joined query with parameters won't run on sql server

2016-07-20 Thread Karts
I have the same issue with sql server, but it seems to be related to alias + named param rather than a joined query. The following works fine: .setHeader("ExternalRef", simple("1234")) .to("sql:select event from events where id= :#ExternalRef") But if I alias the table : .setHeader("ExternalRef

RE: camel sql joined query with parameters won't run on sql server

2016-06-26 Thread Ronny Aerts
Sent: zaterdag 25 juni 2016 23:04 To: users@camel.apache.org Subject: Re: camel sql joined query with parameters won't run on sql server Hi Ronny, I had the same kind of problem recently and it turned out to be something to do with the driver not correctly returning the number of parameters. I

Re: camel sql joined query with parameters won't run on sql server

2016-06-26 Thread arno noordover
This seems to be a Microsoft sql server database problem. Have you tried to run this query directly against your database. If you get the same error, you should solve this first. I know that Microsoft sql server support the ansi join syntax: eg: FROM VGMSITE s JOIN VGMLOCATION l ON s.SITENO = l.SIT

Re: camel sql joined query with parameters won't run on sql server

2016-06-25 Thread John Taylor
Hi Ronny, I had the same kind of problem recently and it turned out to be something to do with the driver not correctly returning the number of parameters. I ended up needing to use the parametersCount option. It is described at http://camel.apache.org/sql-component.html Regards, -John Ronny A

camel sql joined query with parameters won't run on sql server

2016-06-25 Thread Ronny Aerts
Hello camel user community, I have strange problem with a Microsoft sql server database joined query where I would like to have some advice. I have 2 spring dsl steps in a route: The siteno and locationno are in a header. Both steps run perfectly good in a firebird database and produce follow