docs: public void checkCloseOnCompletion(ResultSet resultSet) throws SQLException {
      if (mustCloseOnCompletion
          && !closed
          && results != null
          && resultSet.equals(results.getResultSet())) {
        close();
      }
    }