|
I’ve got the following code:
currPage = application.reactor.createRecord("Page");
currPage.setPageID(1); currPage.load(); q1 = currPage.getPageVersionIterator().getQuery();
currPage.setPageID(2); currPage.load(); q2 = currPage.getPageVersionIterator().getQuery();
currPage.setPageID(3); currPage.load(); q3 = currPage.getPageVersionIterator().getQuery();
Although the contents of the page record change when I set the PK and call load(), the iterator seems to be caching the query. q1 gives the same recordset as q2 and q3, when each of them should be different.
I’ve tried calling currPage.getPageVersionIterator().reset() in between the getQuery() calls, but it makes no difference.
Is this a bug, or is the iterator meant to work this way?
Thanks |
- [Reactor For CF] iterator caching Gareth Cole
- Re: [Reactor For CF] iterator caching Jared Rypka-Hauer
- RE: [Reactor For CF] iterator caching Gareth Cole

