Thanks Jared. It works perfectly now

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jared Rypka-Hauer
> Sent: 02 May 2006 22:53
> To: [email protected]
> Subject: Re: [Reactor For CF] iterator caching
> 
> Update Reactor to the latest release... that was just fixed
> in the last day or two.
> 
> J
> 
> On Tue, 2 May 2006 22:47:58 +0100
>  "Gareth Cole" <[EMAIL PROTECTED]> wrote:
> > 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 ColdFusion Mailing List --
> > [email protected]
> > -- Archives at
> > http://www.mail-archive.com/reactor%40doughughes.net/
> 
> 
> 
> 
> -- Reactor for ColdFusion Mailing List -- [email protected]
> -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
> 




 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to