System.setProperty("test.gds_type", "NATIVE");
    public void testResultSetNotClosed() throws Exception {                System.setProperty("test.gds_type", "NATIVE");                connection.setAutoCommit(false);                int recordCount = 1;        PreparedStatement ps = connection                .prepareStatement("INSERT INTO test_table("                        + "id, very_long_str) VALUES (?, ?)");        try {            Random rnd = new Random();            byte[] string = new byte[19000];            rnd.nextBytes(string);            for (int i = 0; i < recordCount; i++) {                ps.setInt(1, i);                ps.setString(2, new String(string));                ps.executeUpdate();            }        } finally {            ps.close();        }        connection.commit();        connection.setAutoCommit(false);                PreparedStatement stmt = connection.prepareStatement(            "SELECT * FROM test_table WHERE id = ?");        try {            stmt.setInt(1, recordCount + 10);                        ResultSet rs = stmt.executeQuery();            assertTrue("Should not find any record", !rs.next());            rs.close();                        stmt.setInt(1, recordCount - 1);            rs = stmt.executeQuery();            assertTrue("Should find a record", rs.next());            rs.close();                    } finally {            stmt.close();        }    }