db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer PagingIterator.java
Date Thu, 20 Nov 2003 20:59:26 GMT
brj         2003/11/20 12:59:26

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        PagingIterator.java
  Log:
  fixed problem with negative size
  
  Revision  Changes    Path
  1.3       +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/PagingIterator.java
  
  Index: PagingIterator.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/PagingIterator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PagingIterator.java	20 Nov 2003 19:31:08 -0000	1.2
  +++ PagingIterator.java	20 Nov 2003 20:59:26 -0000	1.3
  @@ -94,7 +94,7 @@
           
           m_startAt = startAt;
           m_endAt = Math.min(endAt, m_fullSize);        
  -        m_rowLimit = m_endAt - m_startAt + 1;
  +        m_rowLimit = Math.max(0, m_endAt - m_startAt + 1);
           m_currentCursorPosition = m_startAt - 1;
           
           m_iterator.absolute(m_currentCursorPosition);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message