I just tried out camel-sql component (with mysql datasource).

The documentation states that select queries should return one Exchange with
List<Map&lt;String, object>>
with the given test:
List<?> received = assertIsInstanceOf(List.class,
mock.getReceivedExchanges().get(0).getIn().getBody());

I created a simple table with 2 entries and a very simple route:
 from("sql:select * from lookup?dataSource=" + LOOK_UP_DS).to(MOCK_A);

In my case the test above fails because i get 2 exchanges with each
containing the map. Is there any way to get the behavior documented? at the
end i need to convert the result into a csv String.

thanks in advance



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-sql-select-is-returning-many-exchanges-of-type-map-instead-of-one-List-Map-tp5759374.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to