On 09.Aug.2002 -- 09:31 AM, neil wrote:
> Thanks for applying this stuff (or alternatives) so quickly.
> 
> OK so just decrease my row numbers by one then the same description applies:
> With EsqlQuery.position initialised to -1:
>   I asked for 3 rows starting at 1 and got 4 rows starting at 1
>   I asked for 3 rows starting at i > 1 and got 3 rows starting at i + 1
> with position initialised to 0 it works as expected.
> This was without any <esql:use-limit-clause>.
> 
> The "else" that you mention - does that have something to do with this problem?

Yes, the row index is initialized as -1 to be able to tell if we are before the
first row. When the first row is accessed, this should be initialized. This was
missing.

        Chris.

PS: Haven't managed to update CVS yesterday, will do it today for 2.1 and afterwards
for 2.0.4.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to