What does SimpleJDBCTemplate.queryForInt do when the actual result of the SQL query is null?
In particular, what happens if I run queryForInt("select max(foo) from f") and f has no rows?
While I am dealing with this question, what happens if I run queryForInt("select foo from f") and f has no rows?
source share