Skip to content

Commit 6103e4a

Browse files
committed
Fixed bug setting field length introduced in a previous release in the Field class
1 parent ae43f5b commit 6103e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/javaxt/orm/Field.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ public void setDefaultValue(Object defaultValue){
184184

185185

186186
public void setLength(int length){
187-
if (columnType.equalsIgnoreCase("text")){
187+
if (columnType.equalsIgnoreCase("text") ||
188+
columnType.equalsIgnoreCase("varchar")){
188189
columnType = "VARCHAR(" + length + ")";
189190
this.length = length;
190191
}

0 commit comments

Comments
 (0)