Corrette le funzioni write/rewrite perché ritornino gli errori del solo isam
(prima consideravano anche il risultao di update_balances git-svn-id: svn://10.65.10.50/trunk@4904 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7b01cc1b0f
commit
421fb5f697
@ -966,7 +966,7 @@ int TMov_mag::remove(TBaseisamfile& f) const
|
||||
int res;
|
||||
if ((res=TMultiple_rectype::remove(f))==NOERR )
|
||||
// effettua la variazione dei saldi
|
||||
res=((TMov_mag *)this)->update_balances();
|
||||
((TMov_mag *)this)->update_balances();
|
||||
return res;
|
||||
}
|
||||
|
||||
@ -1016,7 +1016,7 @@ int TMov_mag::write(TBaseisamfile& f) const
|
||||
((TMov_mag *)this)->line_inserted(line2key(i), line2data(i));
|
||||
if ((res=TMultiple_rectype::write(f))==NOERR )
|
||||
// effettua la variazione dei saldi
|
||||
res=((TMov_mag *)this)->update_balances();
|
||||
((TMov_mag *)this)->update_balances();
|
||||
return res;
|
||||
}
|
||||
|
||||
@ -1032,16 +1032,17 @@ int TMov_mag::rewrite(TBaseisamfile& f) const
|
||||
((TMov_mag *)this)->line_inserted(line2key(i), line2data(i));
|
||||
if ((res=TMultiple_rectype::rewrite(f))==NOERR )
|
||||
// effettua la variazione dei saldi
|
||||
res=((TMov_mag *)this)->update_balances();
|
||||
((TMov_mag *)this)->update_balances();
|
||||
return res;
|
||||
}
|
||||
|
||||
const char *TMov_mag::get_next_key()
|
||||
{
|
||||
static TString16 nextcod;
|
||||
TLocalisamfile f(LF_MOVMAG);
|
||||
f.last();
|
||||
int a=atoi(f.get(MOVMAG_NUMREG))+1;
|
||||
return _nextcod.format("%d",a);
|
||||
return nextcod.format("%d",a);
|
||||
}
|
||||
|
||||
//*******
|
||||
|
Loading…
x
Reference in New Issue
Block a user