Fixing fill insert stmtm

This commit is contained in:
Fabio Sinibaldi 2022-11-04 16:11:39 +01:00
parent 73618a02bd
commit 222b337308
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}
}