Corretto errore nella read

git-svn-id: svn://10.65.10.50/trunk@2926 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1996-05-29 08:22:00 +00:00
parent bd33c1215e
commit fd1e643907

View File

@ -1164,6 +1164,8 @@ TRecnotype TCursor::read(TIsamop op, TReclock lockop, TDate& atdate)
if (approx && _if->file().status() == _iseof)
{
_pos = _totrec - 1;
readrec();
file().setstatus(_iseof);
return _pos;
}
@ -1223,7 +1225,7 @@ TRecnotype TCursor::readrec()
{
TRecnotype& nrec = file().filehnd()->RecNo;
if (_pos == items())
if (_pos >= items())
{
file().setstatus(_iseof);
curr().zero();