svn commit: r592291 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelFieldType.java

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

svn commit: r592291 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelFieldType.java

lektran
Author: lektran
Date: Mon Nov  5 21:48:00 2007
New Revision: 592291

URL: http://svn.apache.org/viewvc?rev=592291&view=rev
Log:
Added support for CLOB to ModelFieldType.stringLength()

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelFieldType.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelFieldType.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelFieldType.java?rev=592291&r1=592290&r2=592291&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelFieldType.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelFieldType.java Mon Nov  5 21:48:00 2007
@@ -112,7 +112,7 @@
             } else {
                 return 255;
             }
-        } else if (sqlTypeUpperCase.indexOf("TEXT") >= 0 || sqlTypeUpperCase.indexOf("LONG") >= 0) {
+        } else if (sqlTypeUpperCase.indexOf("TEXT") >= 0 || sqlTypeUpperCase.indexOf("LONG") >= 0 || sqlTypeUpperCase.indexOf("CLOB") >= 0) {
             return 5000;
         }
         return 20;