skip to Main Content

Random mysql crash when closing a statement

I have the following code: Statement statement =createStatement(); try (java.sql.ResultSet resultset = statement.executeQuery()) { while (resultset.next()) { myObject.setProcessingDate(resultset.getDate(1)); myObject.set... } }finally { if (statement != null) { statement.close(); } } I know that statement object should be created in the…

VIEW QUESTION
Back To Top
Search