[fdo-trac] #97: SDF Scrollable Reader continuous loop
FDO
trac_fdo at osgeo.org
Wed Jul 11 08:38:17 EDT 2007
#97: SDF Scrollable Reader continuous loop
-----------------------------+----------------------------------------------
Reporter: brentrobinson | Owner: brentrobinson
Type: defect | Status: new
Priority: minor | Milestone: 3.3.0
Component: SDF Provider | Version: 3.3.0
Severity: 3 | Keywords:
External_id: |
-----------------------------+----------------------------------------------
The reader returned by the SDF Extended Select command can be used for
forward retrieval by calling ReadNext(). When the reader reaches the end
of the results set, ReadNext() returns false as expected. However, if a
subsequent call is made to ReadNext(), it returns true, and the reader is
positioned back to the first row in the results set.
The above can lead to infinite loops in applications. However, this is a
minor problem since the application has to ignore the ReadNext() that
returned false to get into this situation. Regardless, this would be easy
to fix. When ReadNext() returns false, subsequent ReadNext() calls would
also return false, until the reader is re-position by calls to
ReadPrevious(), ReadAt(), etc.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/97>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list