From 97135e403e550347d447ceeeba4c0e1c5840b047 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 15 Jul 2013 18:38:35 -0500 Subject: [PATCH] IDEMPIERE-1179 DB.executeUpdateEx is not allowing byte[] objects --- org.adempiere.base/src/org/compiere/util/DB.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/util/DB.java b/org.adempiere.base/src/org/compiere/util/DB.java index 63f89ccc02..3e77508e0c 100644 --- a/org.adempiere.base/src/org/compiere/util/DB.java +++ b/org.adempiere.base/src/org/compiere/util/DB.java @@ -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); }