@Throws(Exception::class) fun testSetMaxRows() { var maxRowsStmt: Statement? = null try { maxRowsStmt = this.conn.createStatement() maxRowsStmt.setMaxRows(1) this.rs = maxRowsStmt.executeQuery("SELECT 1") } finally { if (maxRowsStmt != null) { maxRowsStmt.close() } } }
Tests fix for BUG # 907