mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 03:39:33 +02:00
tests: fix 2 database tests which assumed that dates are in yyyy-mm-dd format on all locales
git-svn-id: trunk@14492 -
This commit is contained in:
parent
5cc182ac07
commit
6b1f84087d
@ -100,8 +100,7 @@ begin
|
|||||||
FieldByName('FINTEGER').AsInteger := testIntValues[i];
|
FieldByName('FINTEGER').AsInteger := testIntValues[i];
|
||||||
FieldByName('FBOOLEAN').AsBoolean := testBooleanValues[i];
|
FieldByName('FBOOLEAN').AsBoolean := testBooleanValues[i];
|
||||||
FieldByName('FFLOAT').AsFloat := testFloatValues[i];
|
FieldByName('FFLOAT').AsFloat := testFloatValues[i];
|
||||||
ShortDateFormat := 'yyyy-mm-dd';
|
FieldByName('FDATE').AsDateTime := StrToDate(testDateValues[i], 'yyyy/mm/dd', '-');
|
||||||
FieldByName('FDATE').AsDateTime := StrToDate(testDateValues[i]);
|
|
||||||
FieldByName('FLARGEINT').AsLargeInt := testLargeIntValues[i];
|
FieldByName('FLARGEINT').AsLargeInt := testLargeIntValues[i];
|
||||||
Post;
|
Post;
|
||||||
end;
|
end;
|
||||||
|
@ -228,7 +228,6 @@ var DBConnectorClass : TPersistentClass;
|
|||||||
begin
|
begin
|
||||||
testValues[ftString] := testStringValues;
|
testValues[ftString] := testStringValues;
|
||||||
testValues[ftFixedChar] := testStringValues;
|
testValues[ftFixedChar] := testStringValues;
|
||||||
testValues[ftDate] := testDateValues;
|
|
||||||
for i := 0 to testValuesCount-1 do
|
for i := 0 to testValuesCount-1 do
|
||||||
begin
|
begin
|
||||||
testValues[ftFloat,i] := FloatToStr(testFloatValues[i]);
|
testValues[ftFloat,i] := FloatToStr(testFloatValues[i]);
|
||||||
@ -242,6 +241,7 @@ begin
|
|||||||
testValues[ftCurrency,i] := CurrToStr(testCurrencyValues[i]);
|
testValues[ftCurrency,i] := CurrToStr(testCurrencyValues[i]);
|
||||||
// DecimalSeparator:='.';
|
// DecimalSeparator:='.';
|
||||||
testValues[ftBCD,i] := CurrToStr(testCurrencyValues[i]);
|
testValues[ftBCD,i] := CurrToStr(testCurrencyValues[i]);
|
||||||
|
testValues[ftDate,i] := DateToStr(StrToDate(testDateValues[i], 'yyyy/mm/dd', '-'));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if dbconnectorname = '' then raise Exception.Create('There is no db-connector specified');
|
if dbconnectorname = '' then raise Exception.Create('There is no db-connector specified');
|
||||||
|
Loading…
Reference in New Issue
Block a user