openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r814825 - /openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractResult.java
Date Mon, 14 Sep 2009 20:07:23 GMT
Author: dwoods
Date: Mon Sep 14 20:07:23 2009
New Revision: 814825

URL: http://svn.apache.org/viewvc?rev=814825&view=rev
Log:
OPENJPA-1158 Incorrect handling of long values in AbstractResult.  Patch contributed by Craig
Russell.

Modified:
    openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractResult.java

Modified: openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractResult.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractResult.java?rev=814825&r1=814824&r2=814825&view=diff
==============================================================================
--- openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractResult.java
(original)
+++ openjpa/branches/1.3.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/AbstractResult.java
Mon Sep 14 20:07:23 2009
@@ -661,8 +661,8 @@
     protected long getLongInternal(Object obj, Joins joins)
         throws SQLException {
         Number val = (Number) checkNull(getObjectInternal(obj,
-            JavaTypes.INT, null, joins));
-        return (val == null) ? 0 : val.intValue();
+            JavaTypes.LONG, null, joins));
+        return (val == null) ? 0 : val.longValue();
     }
 
     public Number getNumber(Object obj)



Mime
View raw message