From be7f6076f9617673023a2660e12617e6f58ea76b Mon Sep 17 00:00:00 2001 From: JunkJumper Date: Wed, 6 May 2020 13:26:53 +0200 Subject: [PATCH] querry readAllBytes OK String to void #4 --- src/database/QueryGenerator.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/database/QueryGenerator.java b/src/database/QueryGenerator.java index 2aade4e..4fb82be 100644 --- a/src/database/QueryGenerator.java +++ b/src/database/QueryGenerator.java @@ -48,7 +48,7 @@ public class QueryGenerator { 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; ByteArrayOutputStream baos = new ByteArrayOutputStream(); @@ -82,8 +82,6 @@ public class QueryGenerator { PreparedStatement pst = conn.prepareStatement(query); pst.setBinaryStream(4, objectIS); pst.executeUpdate(); - - return query; } }