IDEMPIERE-1179 DB.executeUpdateEx is not allowing byte[] objects

This commit is contained in:
Carlos Ruiz 2013-07-15 18:38:35 -05:00
parent b68a7730ea
commit 97135e403e
1 changed files with 2 additions and 0 deletions

View File

@ -844,6 +844,8 @@ public final class DB
pstmt.setTimestamp(index, (Timestamp)param);
else if (param instanceof Boolean)
pstmt.setString(index, ((Boolean)param).booleanValue() ? "Y" : "N");
else if (param instanceof byte[])
pstmt.setBytes(index, (byte[]) param);
else
throw new DBException("Unknown parameter type "+index+" - "+param);
}