You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2017/12/08 20:48:14 UTC
svn commit: r1817561 -
/ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java
Author: mbrohl
Date: Fri Dec 8 20:48:14 2017
New Revision: 1817561
URL: http://svn.apache.org/viewvc?rev=1817561&view=rev
Log:
Improved: removed unnecessary condition check.
Modified:
ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java
Modified: ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java?rev=1817561&r1=1817560&r2=1817561&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java Fri Dec 8 20:48:14 2017
@@ -284,8 +284,7 @@ public final class ModelUtil {
if (length > 18 || precision > 6) return "invalid-" + sqlTypeName + ":" + length + ":" + precision;
if (precision == 0) return "numeric";
if (precision == 2) return "currency-amount";
- if (precision <= 6) return "floating-point";
- return "invalid-" + sqlTypeName + ":" + length + ":" + precision;
+ return "floating-point";
} else if ("BLOB".equalsIgnoreCase(sqlTypeName) || "OID".equalsIgnoreCase(sqlTypeName)) {
return "blob";
} else if ("DATETIME".equalsIgnoreCase(sqlTypeName) || "TIMESTAMP".equalsIgnoreCase(sqlTypeName)) {