Commit aad02a1d authored by Quxl's avatar Quxl

x

parent 42b4b689
...@@ -174,11 +174,7 @@ public class DBPort { ...@@ -174,11 +174,7 @@ public class DBPort {
index += 1; index += 1;
Object colObj = map.get(keyObject); Object colObj = map.get(keyObject);
Map<?, ?> columnMap = (Map<?, ?>) colObj; Map<?, ?> columnMap = (Map<?, ?>) colObj;
String columnType = (String) columnMap.get("type");
Object columnValue = columnMap.get("value"); Object columnValue = columnMap.get("value");
if(columnType.startsWith("image") || columnType.startsWith("blob")) {
columnValue = new ByteArrayInputStream((byte[])columnValue);
}
ps.setObject(index, columnValue); ps.setObject(index, columnValue);
} }
ps.addBatch(); ps.addBatch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment