Author: jgbutler Date: Thu Mar 20 08:21:12 2008 New Revision: 639313 URL: http://svn.apache.org/viewvc?rev=639313&view=rev Log: Fix for IBATIS-497 - Improper use of hashCode in SqlExecuter
Modified: ibatis/trunk/java/mapper/mapper2/build/version.properties ibatis/trunk/java/mapper/mapper2/doc/release.txt ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/execution/SqlExecutor.java Modified: ibatis/trunk/java/mapper/mapper2/build/version.properties URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/build/version.properties?rev=639313&r1=639312&r2=639313&view=diff ============================================================================== --- ibatis/trunk/java/mapper/mapper2/build/version.properties (original) +++ ibatis/trunk/java/mapper/mapper2/build/version.properties Thu Mar 20 08:21:12 2008 @@ -1,5 +1,5 @@ #Build version info -#Wed Mar 12 10:54:51 CDT 2008 +#Thu Mar 20 10:18:10 CDT 2008 version=2.3.1 -buildDate=2008/03/12 10\:54 -buildNum=700 +buildDate=2008/03/20 10\:18 +buildNum=701 Modified: ibatis/trunk/java/mapper/mapper2/doc/release.txt URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/doc/release.txt?rev=639313&r1=639312&r2=639313&view=diff ============================================================================== --- ibatis/trunk/java/mapper/mapper2/doc/release.txt (original) +++ ibatis/trunk/java/mapper/mapper2/doc/release.txt Thu Mar 20 08:21:12 2008 @@ -10,6 +10,7 @@ o Fixed IBATIS-484 - Make setType method in JdbcTypeRegistry public o Fixed IBATIS-490 - Improper use of getColumnLabel() o Fixed IBATIS-494 - Improper NULL handling in Blob and Clob Type Handlers + o Fixed IBATIS-497 - Improper use of hashCode in SqlExecuter ------------------------------ Modified: ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/execution/SqlExecutor.java URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/execution/SqlExecutor.java?rev=639313&r1=639312&r2=639313&view=diff ============================================================================== --- ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/execution/SqlExecutor.java (original) +++ ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/execution/SqlExecutor.java Thu Mar 20 08:21:12 2008 @@ -575,7 +575,7 @@ */ public void addBatch(StatementScope statementScope, Connection conn, String sql, Object[] parameters) throws SQLException { PreparedStatement ps = null; - if (currentSql != null && sql.hashCode() == currentSql.hashCode() && sql.length() == currentSql.length()) { + if (currentSql != null && currentSql.equals(sql)) { int last = statementList.size() - 1; ps = (PreparedStatement) statementList.get(last); } else {