querry readAllBytes OK String to void #4

This commit is contained in:
JunkJumper 2020-05-06 13:26:53 +02:00
parent 975cedb690
commit be7f6076f9

View File

@ -48,7 +48,7 @@ public class QueryGenerator {
return DriverManager.getConnection(url, user, password); return DriverManager.getConnection(url, user, password);
} }
public static String queryInsertObject(int id, Object o) throws IOException, SQLException { public static void queryInsertObject(int id, Object o) throws IOException, SQLException {
String table = null; String table = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream();
@ -82,8 +82,6 @@ public class QueryGenerator {
PreparedStatement pst = conn.prepareStatement(query); PreparedStatement pst = conn.prepareStatement(query);
pst.setBinaryStream(4, objectIS); pst.setBinaryStream(4, objectIS);
pst.executeUpdate(); pst.executeUpdate();
return query;
} }
} }