question: 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 ; }
target:  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.