mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-05 20:50:32 +02:00
* removing a temporary workaround in the db testsuite and a minor cleanup
git-svn-id: trunk@19305 -
This commit is contained in:
parent
c1814c4328
commit
e36183cbc8
@ -1069,10 +1069,7 @@ end;
|
|||||||
function TStringField.GetDataSize: Integer;
|
function TStringField.GetDataSize: Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if DataType=ftFixedChar then
|
Result:=Size+1;
|
||||||
Result:=Size+1
|
|
||||||
else
|
|
||||||
Result:=Size+1;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TStringField.GetDefaultWidth: Longint;
|
function TStringField.GetDefaultWidth: Longint;
|
||||||
|
@ -2005,7 +2005,7 @@ var i : byte;
|
|||||||
Fld : TField;
|
Fld : TField;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
TestfieldDefinition(ftFixedChar,10,ds,Fld);
|
TestfieldDefinition(ftFixedChar,11,ds,Fld);
|
||||||
for i := 0 to testValuesCount-1 do
|
for i := 0 to testValuesCount-1 do
|
||||||
begin
|
begin
|
||||||
if Fld.IsNull then // If the field is null, .AsString always returns an empty, non-padded string
|
if Fld.IsNull then // If the field is null, .AsString always returns an empty, non-padded string
|
||||||
|
Loading…
Reference in New Issue
Block a user