// if (strValue.length() > 255){\r
// logger.debug("String to long (" + strValue.length() + ") for object " + cdmBase.toString() + ": " + value);\r
// }\r
- if (strValue.length() > getPrecision() && getPrecision() != -1 ){\r
+ if (strValue.length() > getPrecision() && getPrecision() > 0 ){\r
logger.warn("The length of the string to save is longer than the database columns precision. String will be truncated: " + strValue);\r
if (getPrecision() >= 4) {\r
strValue = strValue.substring(0, getPrecision() - 4 )+" ...";\r