JdbcClient
should reject a List
as the parameter of the IN
clause of an SQL statement when using positional parameters
#31215
Labels
Milestone
Most of the methods of JdbcClient work with positional parameters in the SQL statement as well as with named parameters 馃憤.
When I use a named parameter, i can use a List as the value for a named parameter in the IN clause of an SQL statement 馃憤:
When I try the same with a positional parameter, I get an exception 馃様:
org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [select id,name from persons where id in (?)]; Data conversion error converting "JAVA_OBJECT to BIGINT"; SQL statement:
select id,name from persons where id in (?)
I put a project on https://github.com/hansdesmet/jdbcclientproposal2 that shows the problem.
Is it possible to make this work with a positional parameter ?
The text was updated successfully, but these errors were encountered: