querry readAllBytes OK String to void #4
This commit is contained in:
parent
975cedb690
commit
be7f6076f9
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user