听过多次投诉Spring JDBC有bug, 今天自己总算遇到.
String querySql = "......"; // 400行左右
Object[] params = new Object[] { beginDate, endDate, beginDate, endDate, beginDate, endDate, beginDate, endDate, beginDate, endDate} ;
return getJdbcTemplate().query(querySql, params, new OracleRowMapper());
设置10个参数时, 导致出现ora-00932错误, 而在sqlplus or pl/sql developer中正常运行, 改成拼字符串后正常.
Spring的版本为1.2.2, 具体原因还未查找, 估计是Spring JDBC的bug
Happy New Year To Everyone!