diff --git a/include/cisam.c b/include/cisam.c index 347b0c20c..3169ca373 100755 --- a/include/cisam.c +++ b/include/cisam.c @@ -815,7 +815,6 @@ key = valori chiave. { CBuildKey(isfd->r,i,record,key); CBDelete(&isfd->i,i,key,isfd->RecNo,err); - if (i == knum) savekeystat(isfd); } if (*err) { @@ -1250,6 +1249,7 @@ key1 = valore della chiave. if(isfd == (isfdptr) NULL) return ((*err = IsNotOpen)); oldrec = (RecType) malloc(isfd->d->LenR); isfd->RecNo = recnum; + savekeystat(isfd); CRead(&isfd->f, oldrec, isfd->RecNo, NoLock); if ((*err = isfd->f.IOR)) {