Details
Description
When you execute large dynamic SQL ibatis add a lot a sapces to the query. This situation could create problem to debug queries and for some database provider it takes more memory when the query "string" is larger.
A simple fix could be used in com.ibatis.sqlmap.engine.execution :
Add : sql = sql.trim().replaceAll("\\s\\s*", " ");
In : could be inserted in all these function : executeUpdate, addBatch, executeQuery, executeUpdateProcedure, executeQueryProcedure, prepareStatement, prepareCall, prepareStatement, prepareCall, addBatch