title: JDBC executeQuery always throws exception
body: <p>I'm using jdbc.Driver to get a connection and then use a prepared statement to get a table from a mySQL instance.</p>
  
  <p>For some reason every  preparedStatement.executeQuery(); throws a "Before start of result set" exception even before I try to use the resultSet.</p>
  
  <p>Here is the example code for the main class</p>
  
  <pre><code>  public static void main(String args[]) {
      try {
          Class.forName("com.mysql.jdbc.Driver");
          Connection mySQLConnection = DriverManager.getConnection("jdbc:mysql://localhost:3306/operations", "user", "password");
          PreparedStatement preparedStatement = mySQLConnection.prepareStatement("SELECT * FROM operations.feature_properties LIMIT 0,1000");
  
         ResultSet resultSet = preparedStatement.executeQuery();
         //Exception is thrown by the previous line without using the result set
          mySQLConnection.close();
      } catch (SQLException | ClassNotFoundException e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>The call stack is:</p>
  
  <pre><code>java.sql.SQLException: Before start of result set
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
  at com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java:720)
  at com.mysql.jdbc.ResultSet.getInt(ResultSet.java:2617)
  at sqlReader.SQLReader.main(SQLReader.java:23)
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>