This commit is contained in:
Luck 2016-08-30 22:38:08 +01:00
parent 1fc88e147f
commit 5c19dd8b15
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
3 changed files with 3 additions and 3 deletions

View File

@ -66,6 +66,7 @@ public class H2Datastore extends SQLDatastore {
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery()); @Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
queryPS.onRun(preparedStatement); queryPS.onRun(preparedStatement);
preparedStatement.execute(); preparedStatement.execute();
success = true; success = true;
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
@ -84,7 +85,6 @@ public class H2Datastore extends SQLDatastore {
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery()); @Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
queryRS.onRun(preparedStatement); queryRS.onRun(preparedStatement);
preparedStatement.execute();
@Cleanup ResultSet resultSet = preparedStatement.executeQuery(); @Cleanup ResultSet resultSet = preparedStatement.executeQuery();
success = queryRS.onResult(resultSet); success = queryRS.onResult(resultSet);

View File

@ -85,6 +85,7 @@ public class MySQLDatastore extends SQLDatastore {
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery()); @Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
queryPS.onRun(preparedStatement); queryPS.onRun(preparedStatement);
preparedStatement.execute(); preparedStatement.execute();
success = true; success = true;
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
@ -103,7 +104,6 @@ public class MySQLDatastore extends SQLDatastore {
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery()); @Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
queryRS.onRun(preparedStatement); queryRS.onRun(preparedStatement);
preparedStatement.execute();
@Cleanup ResultSet resultSet = preparedStatement.executeQuery(); @Cleanup ResultSet resultSet = preparedStatement.executeQuery();
success = queryRS.onResult(resultSet); success = queryRS.onResult(resultSet);

View File

@ -66,6 +66,7 @@ public class SQLiteDatastore extends SQLDatastore {
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery()); @Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
queryPS.onRun(preparedStatement); queryPS.onRun(preparedStatement);
preparedStatement.execute(); preparedStatement.execute();
success = true; success = true;
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
@ -84,7 +85,6 @@ public class SQLiteDatastore extends SQLDatastore {
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery()); @Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
queryRS.onRun(preparedStatement); queryRS.onRun(preparedStatement);
preparedStatement.execute();
@Cleanup ResultSet resultSet = preparedStatement.executeQuery(); @Cleanup ResultSet resultSet = preparedStatement.executeQuery();
success = queryRS.onResult(resultSet); success = queryRS.onResult(resultSet);