private void testBug71396PrepStatementCheck(Connection testConn,String query,int expRowCount,int maxRows) throws SQLException {
  PreparedStatement chkPStmt;
  chkPStmt=testConn.prepareStatement(query);
  if (maxRows > 0) {
    chkPStmt.setMaxRows(maxRows);
  }
  testBug71396PrepStatementCheck(chkPStmt,query,expRowCount);
  chkPStmt.close();
}

private void testBug71396PrepStatementCheck ( Connection testConn , String query , int expRowCount , int maxRows ) throws SQLException { PreparedStatement chkPStmt ; chkPStmt = testConn . prepareStatement ( query ) ; if ( maxRows > 0 ) { chkPStmt . setMaxRows ( maxRows ) ; } testBug71396PrepStatementCheck ( chkPStmt , query , expRowCount ) ; chkPStmt . close ( ) ; }
executes one query using a newly created preparedstatement , setting its maxrows limit , and tests if the results count is the expected .
