IDEMPIERE-1179 DB.executeUpdateEx is not allowing byte[] objects
This commit is contained in:
parent
b68a7730ea
commit
97135e403e
|
@ -844,6 +844,8 @@ public final class DB
|
||||||
pstmt.setTimestamp(index, (Timestamp)param);
|
pstmt.setTimestamp(index, (Timestamp)param);
|
||||||
else if (param instanceof Boolean)
|
else if (param instanceof Boolean)
|
||||||
pstmt.setString(index, ((Boolean)param).booleanValue() ? "Y" : "N");
|
pstmt.setString(index, ((Boolean)param).booleanValue() ? "Y" : "N");
|
||||||
|
else if (param instanceof byte[])
|
||||||
|
pstmt.setBytes(index, (byte[]) param);
|
||||||
else
|
else
|
||||||
throw new DBException("Unknown parameter type "+index+" - "+param);
|
throw new DBException("Unknown parameter type "+index+" - "+param);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue