Corretta ricerca approssimata sui cursori nel caso di end of file e file vuoto
git-svn-id: svn://10.65.10.50/trunk@542 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
07d5119fef
commit
fc011addc8
@ -1,4 +1,4 @@
|
|||||||
// $Id: relation.cpp,v 1.21 1994-11-04 11:07:40 alex Exp $
|
// $Id: relation.cpp,v 1.22 1994-11-07 11:46:16 alex Exp $
|
||||||
// relation.cpp
|
// relation.cpp
|
||||||
// fv 12/8/93
|
// fv 12/8/93
|
||||||
// relation class for isam files
|
// relation class for isam files
|
||||||
@ -915,12 +915,19 @@ TRecnotype TCursor::read(TIsamop op, TReclock lockop, TDate& atdate)
|
|||||||
|
|
||||||
_if->file().read(op, lockop, atdate);
|
_if->file().read(op, lockop, atdate);
|
||||||
if (approx)
|
if (approx)
|
||||||
while (!ok())
|
{
|
||||||
|
while (_if->file().good() && !ok())
|
||||||
_if->file().next();
|
_if->file().next();
|
||||||
|
}
|
||||||
const TRecnotype curpos = file().recno();
|
const TRecnotype curpos = file().recno();
|
||||||
|
|
||||||
if (changed())
|
if (changed())
|
||||||
_totrec = update();
|
_totrec = update();
|
||||||
|
if (approx && _if->file().status() == _iseof)
|
||||||
|
{
|
||||||
|
_pos = _totrec - 1;
|
||||||
|
return _pos;
|
||||||
|
}
|
||||||
|
|
||||||
FILE* _f = open_index();
|
FILE* _f = open_index();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user