commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1457563 - /commons/proper/dbutils/branches/2_0/src/main/java/org/apache/commons/dbutils2/AbstractExecutor.java
Date Sun, 17 Mar 2013 20:55:53 GMT
Author: sebb
Date: Sun Mar 17 20:55:53 2013
New Revision: 1457563

URL: http://svn.apache.org/r1457563
Log:
Explicit boxing

Modified:
    commons/proper/dbutils/branches/2_0/src/main/java/org/apache/commons/dbutils2/AbstractExecutor.java

Modified: commons/proper/dbutils/branches/2_0/src/main/java/org/apache/commons/dbutils2/AbstractExecutor.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/branches/2_0/src/main/java/org/apache/commons/dbutils2/AbstractExecutor.java?rev=1457563&r1=1457562&r2=1457563&view=diff
==============================================================================
--- commons/proper/dbutils/branches/2_0/src/main/java/org/apache/commons/dbutils2/AbstractExecutor.java
(original)
+++ commons/proper/dbutils/branches/2_0/src/main/java/org/apache/commons/dbutils2/AbstractExecutor.java
Sun Mar 17 20:55:53 2013
@@ -183,7 +183,7 @@ abstract class AbstractExecutor<T extend
 
         // go through and bind all of the positions for this name
         for (Integer p:pos) {
-            stmt.setNull(p, sqlType);
+            stmt.setNull(p.intValue(), sqlType);
         }
 
         // add the param and value to our map
@@ -216,7 +216,7 @@ abstract class AbstractExecutor<T extend
         // go through and bind all of the positions for this name
         for (Integer p:pos) {
             // TODO: need to figure out how to bind NULL
-            stmt.setObject(p, value);
+            stmt.setObject(p.intValue(), value);
         }
 
         // add the param and value to our map



Mime
View raw message