COrrezione alla changed dei cursori

git-svn-id: svn://10.65.10.50/trunk@1486 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-06-19 14:08:55 +00:00
parent 52d450f7f0
commit bffd6e78ca

View File

@ -1,4 +1,4 @@
// $Id: relation.cpp,v 1.46 1995-06-05 16:06:26 alex Exp $ // $Id: relation.cpp,v 1.47 1995-06-19 14:08:55 alex Exp $
// relation.cpp // relation.cpp
// fv 12/8/93 // fv 12/8/93
// relation class for isam files // relation class for isam files
@ -906,9 +906,9 @@ bool TCursor::changed()
(_lastkrec != fh->i.Base[_nkey -1].PEOD) || (_lastkrec != fh->i.Base[_nkey -1].PEOD) ||
(_filename != fh->f.name)) (_filename != fh->f.name))
{ {
_lastrec = eod; // _lastrec = eod;
_lastkrec = fh->i.Base[_nkey -1].PEOD; // _lastkrec = fh->i.Base[_nkey -1].PEOD;
_filename = fh->f.name; // _filename = fh->f.name;
return TRUE; return TRUE;
} }
else return FALSE; else return FALSE;
@ -924,6 +924,19 @@ TRecnotype TCursor::update()
const TRecnotype totrec = buildcursor(file().recno()); const TRecnotype totrec = buildcursor(file().recno());
main_app().end_wait(); main_app().end_wait();
isdef* fh = file().filehnd();
#if XVT_OS==XVT_OS_SCOUNIX
const TRecnotype eod = file().eod();
#else
int junk = 0;
const TRecnotype eod = cisgeteod(fh, &junk);
#endif
_lastrec = eod;
_lastkrec = fh->i.Base[_nkey -1].PEOD;
_filename = fh->f.name;
return totrec; return totrec;
} }