Opened 17 years ago

Last modified 17 years ago

#97 reopened defect

SDF Scrollable Reader continuous loop

Reported by: brentrobinson Owned by: brentrobinson
Priority: minor Milestone: 3.4.0
Component: SDF Provider Version: 3.3.0
Severity: 3 Keywords:
Cc: External ID:

Description

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.

Change History (4)

comment:1 by brentrobinson, 17 years ago

Status: newassigned

comment:2 by brentrobinson, 17 years ago

Resolution: fixed
Status: assignedclosed

Revision: 3180 Author: brentrobinson Date: 3:56:58 PM, Tuesday, July 31, 2007 Message: Ticket#97: Keep position at end of results set when ReadNext() to the end.


Modified : /trunk/Providers/SDF/Src/Provider/SdfIndexedScrollableFeatureReader.cpp

comment:3 by brentrobinson, 17 years ago

Resolution: fixed
Status: closedreopened

Backed out of previous change since there are number of other readers that need to be looked at. This change made the SdfIndexedScrollableFeatureReader behave differently from the SdfScrollableFeatureReader. These, and the SHP scrollable readers would have to be looked at to ensure that any changes do not add inconsistencies to the behaviours of these readers.

comment:4 by gregboone, 17 years ago

Milestone: 3.3.03.3.1
Note: See TracTickets for help on using tickets.