Revision 44926 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.dbf/src/main/java/org/gvsig/fmap/dal/store/dbf/utils/DbaseFieldDescriptor.java
DbaseFieldDescriptor.java | ||
---|---|---|
47 | 47 |
public static final char DBFTYPE_TIMESTAMP = '@'; |
48 | 48 |
public static final char DBFTYPE_AUTOINCREMENT = '+'; |
49 | 49 |
|
50 |
public static final int MAX_SIZE = 254; |
|
51 |
public static final int MAX_NUMBER_SIZE = 20; |
|
52 |
|
|
50 | 53 |
// Field Name |
51 | 54 |
private String name; |
52 | 55 |
private String name_trim; |
... | ... | |
152 | 155 |
break; |
153 | 156 |
|
154 | 157 |
case DBFTYPE_STRING: |
155 |
if (size > 254) {
|
|
156 |
warn("Field Length for " + this.name + " set to " + size + " Which is longer than 254, not consistent with dbase III");
|
|
158 |
if (size > MAX_SIZE) {
|
|
159 |
warn("Field Length for " + this.name + " set to " + size + " Which is longer than "+MAX_SIZE+" not consistent with dbase III");
|
|
157 | 160 |
} |
158 | 161 |
this.size = size; |
159 | 162 |
break; |
Also available in: Unified diff