Fixing fill insert stmtm
This commit is contained in:
parent
73618a02bd
commit
222b337308
|
@ -234,13 +234,14 @@ public class PostgisTable {
|
|||
if(value instanceof String)
|
||||
toFill.setString(psFieldIndex, ((String) value));
|
||||
else toFill.setBytes(psFieldIndex, (byte[])value);
|
||||
break;
|
||||
}
|
||||
case BOOLEAN: {
|
||||
if(value instanceof String)
|
||||
toFill.setBoolean(psFieldIndex,Boolean.parseBoolean(value.toString()));
|
||||
if(value instanceof Boolean)
|
||||
toFill.setBoolean(psFieldIndex,(Boolean) value);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue