In Kotlin Array<Int>
is a Integer[]
under the hood, and IntArray
is an int[]
(see here).
To resolve the issue, you can change c
to c.toIntArray()
on the last line:
targetJdbcTemplate.update(sql, p, c.toIntArray())
In Kotlin Array<Int>
is a Integer[]
under the hood, and IntArray
is an int[]
(see here).
To resolve the issue, you can change c
to c.toIntArray()
on the last line:
targetJdbcTemplate.update(sql, p, c.toIntArray())