mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 07:30:54 +02:00
* fcl-db/dbase: let dbf.pas apply default blocklength=64 (instead of 512) for *foxpro
git-svn-id: trunk@24210 -
This commit is contained in:
parent
8353d53b69
commit
36cb560e0d
@ -1518,7 +1518,11 @@ begin
|
||||
FDbfFile.DbfVersion := TableLevelToDbfVersion(FTableLevel);
|
||||
FDbfFile.FileLangID := FLanguageID;
|
||||
FDbfFile.Open;
|
||||
FDbfFile.FinishCreate(ADbfFieldDefs, 512);
|
||||
// Default memo blocklength for FoxPro/VisualFoxpro is 64 (not 512 as specs say)
|
||||
if FDbfFile.DbfVersion in [xFoxPro,xVisualFoxPro] then
|
||||
FDbfFile.FinishCreate(ADbfFieldDefs, 64)
|
||||
else
|
||||
FDbfFile.FinishCreate(ADbfFieldDefs, 512);
|
||||
|
||||
// if creating memory table, copy stream pointer
|
||||
if FStorage = stoMemory then
|
||||
|
Loading…
Reference in New Issue
Block a user