jdbcclient: JdbcClient on Spring Framework 7.0.10 / Boot 4.1.2, with twelve real transcripts
Parameters, row mapping, single/optional/list, generated keys, batch via NamedParameterJdbcTemplate (JdbcClient has none), exception translation, transactions, an unclosed stream() exhausting a 2-connection pool, withMaxRows truncating silently, and spring.jdbc.template.* reaching the auto-configured JdbcClient. JdbcClient API diffed across 6.1.0, 6.2.19 and 7.0.0. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5n3PRbPkUsiJybTeg
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
260c8a692f
commit
fc8bc933d5
@@ -0,0 +1,14 @@
|
||||
0 rows 1 row 4 rows
|
||||
list() [] [Mechanical Keyboard] 4 items
|
||||
single() EmptyResult.. Mechanical Keyboard IncorrectResultSize..
|
||||
optional() Optional.empty Optional[Mechanical Keyboard] IncorrectResultSize..
|
||||
set() [] [Mechanical Keyboard] 4 items
|
||||
|
||||
single() on 0 rows: org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
|
||||
single() on 4 rows: org.springframework.dao.IncorrectResultSizeDataAccessException: Incorrect result size: expected 1, actual 4
|
||||
EmptyResultDataAccessException extends IncorrectResultSizeDataAccessException: true
|
||||
|
||||
untyped singleValue() of COUNT(*): 5 (Long)
|
||||
untyped optionalValue() with no row: Optional.empty
|
||||
optional() over SELECT MAX(price) with no matching rows: Optional.empty
|
||||
single() over the same query: org.springframework.dao.TypeMismatchDataAccessException: Result value is null but no null value expected
|
||||
Reference in New Issue
Block a user