You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sdeleuze
changed the title
JdbcOperationsExtensions need to convert Kotlin Array to Java varargs
Fix JdbcOperations.queryForObject/queryForList extensions
Jan 4, 2021
Affects: 5.3.2
JdbcOperationsExtensions passes kotlin Array to Java varargs, so Array of array is passed to database, and fails.
https://github.com/spring-projects/spring-framework/blob/v5.3.2/spring-jdbc/src/main/kotlin/org/springframework/jdbc/core/JdbcOperationsExtensions.kt#L57-L58
should be
And,
JdbcOperations.queryForList(sql: String, args: Array<out Any>): List<T>
has the same problem.https://github.com/spring-projects/spring-framework/blob/v5.3.2/spring-jdbc/src/main/kotlin/org/springframework/jdbc/core/JdbcOperationsExtensions.kt#L89-L90J
The text was updated successfully, but these errors were encountered: