From 55644ed7606138be0460b45c3cc8d87e04f161a3 Mon Sep 17 00:00:00 2001 From: angelo Date: Fri, 15 Dec 1995 15:40:37 +0000 Subject: [PATCH] Modificata la TSystemisamfile::update(): aggiunta la copia per i file memo per DBIII e DBIV. git-svn-id: svn://10.65.10.50/trunk@2301 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/isam.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/isam.cpp b/include/isam.cpp index 5393abb42..1a7f1d860 100755 --- a/include/isam.cpp +++ b/include/isam.cpp @@ -1896,10 +1896,16 @@ int TSystemisamfile::update( tmpfname.ext("dbf"); fcopy((const char*)tmpfname,(const char*)fname); ::remove((const char*)tmpfname); - tmpfname.ext("fpt"); + if (c & 1) + tmpfname.ext("fpt"); + else + tmpfname.ext("dbt"); if (fexist((const char *) tmpfname)) { - fname.ext("fpt"); + if (c & 1) + fname.ext("fpt"); + else + fname.ext("dbt"); fcopy((const char*)tmpfname,(const char*)fname); ::remove((const char*)tmpfname); }