private Statement testBug71396StatementInit(Connection testConn,int maxRows) throws SQLException {
  ResultSet testRS;
  Statement testStmt=testConn.createStatement();
  testStmt.setMaxRows(maxRows);
  testRS=testStmt.executeQuery("SELECT @@SESSION.SQL_SELECT_LIMIT");
  testRS.next();
  assertEquals("Wrong @@SESSION.SQL_SELECT_LIMIT",maxRows,testRS.getInt(1));
  return testStmt;
}

private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( "SELECT @@SESSION.SQL_SELECT_LIMIT" ) ; testRS . next ( ) ; assertEquals ( "Wrong @@SESSION.SQL_SELECT_LIMIT" , maxRows , testRS . getInt ( 1 ) ) ; return testStmt ; }
initializes and returns a statement with maxrows defined . tests the sql_select_limit defined . executing this query also forces this limit to be defined at session level .
