mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 21:19:31 +02:00
* patch by Frank Rademakers: Initialize new FoxPro Float fields correctly, resolves #39418
This commit is contained in:
parent
3263e12a3e
commit
8ca19a3b65
@ -2341,7 +2341,8 @@ begin
|
||||
TempFieldDef := FFieldDefs.Items[I];
|
||||
// binary (non-text) field? (foxpro memo fields are binary, but dbase not)
|
||||
if (TempFieldDef.NativeFieldType in ['I', 'O', '@', '+', '0', 'W', 'Y'])
|
||||
or ((TempFieldDef.NativeFieldType = 'M') and (TempFieldDef.Size = 4) {Visual FoxPro?}) then
|
||||
or ((TempFieldDef.NativeFieldType = 'M') and (TempFieldDef.Size = 4) {Visual FoxPro?})
|
||||
or ((TempFieldDef.NativeFieldType = 'B') and (FDbfVersion in [xFoxPro, xVisualFoxPro])) then
|
||||
FillChar(PChar(FDefaultBuffer+TempFieldDef.Offset)^, TempFieldDef.Size, 0);
|
||||
// copy default value?
|
||||
if TempFieldDef.HasDefault then
|
||||
|
Loading…
Reference in New Issue
Block a user