code: public ResultSet executeQuery(final String query) throws SQLException {
          startTimer();
          try {
              if (queryResult != null) {
                  queryResult.close();
              }
              final Query queryToSend = queryFactory.createQuery(query);
              queryResult = protocol.executeQuery(queryToSend);
              warningsCleared = false;
              return new DrizzleResultSet(queryResult, this, getProtocol());
          } catch (QueryException e) {
              throw SQLExceptionMapper.get(e);
          } finally {
              stopTimer();
          }
      }
docs: executes a select query.
  
  @param query the query to send to the server
  @return a result set
  @throws SQLException if something went wrong