svn commit: r469283 - /incubator/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/SequenceUtil.java
Posted by
sichen on
Oct 30, 2006; 9:47pm
URL: http://ofbiz.116.s1.nabble.com/svn-commit-r469283-incubator-ofbiz-trunk-framework-entity-src-org-ofbiz-entity-util-SequenceUtil-java-tp209516.html
Author: sichen
Date: Mon Oct 30 13:47:28 2006
New Revision: 469283
URL:
http://svn.apache.org/viewvc?view=rev&rev=469283Log:
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;
}