svn commit: r469283 - /incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r469283 - /incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java

sichen
Author: sichen
Date: Mon Oct 30 13:47:28 2006
New Revision: 469283

URL: http://svn.apache.org/viewvc?view=rev&rev=469283
Log:
Fix bug in sequence value utility where it is actually using Integer instead of Long, so very large sequence values cannot be generated

Modified:
    incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java

Modified: incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java?view=diff&rev=469283&r1=469282&r2=469283
==============================================================================
--- incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java (original)
+++ incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java Mon Oct 30 13:47:28 2006
@@ -191,7 +191,7 @@
                             rs = stmt.executeQuery(sql);
                             boolean gotVal1 = false;
                             if (rs.next()) {
-                                val1 = rs.getInt(parentUtil.idColName);
+                                val1 = rs.getLong(parentUtil.idColName);
                                 gotVal1 = true;
                             }
                             rs.close();
@@ -214,7 +214,7 @@
                             rs = stmt.executeQuery(sql);
                             boolean gotVal2 = false;
                             if (rs.next()) {
-                                val2 = rs.getInt(parentUtil.idColName);
+                                val2 = rs.getLong(parentUtil.idColName);
                                 gotVal2 = true;
                             }