mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 16:48:12 +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('FBOOLEAN').AsBoolean := testBooleanValues[i];
|
||||
FieldByName('FFLOAT').AsFloat := testFloatValues[i];
|
||||
ShortDateFormat := 'yyyy-mm-dd';
|
||||
FieldByName('FDATE').AsDateTime := StrToDate(testDateValues[i]);
|
||||
FieldByName('FDATE').AsDateTime := StrToDate(testDateValues[i], 'yyyy/mm/dd', '-');
|
||||
FieldByName('FLARGEINT').AsLargeInt := testLargeIntValues[i];
|
||||
Post;
|
||||
end;
|
||||
|
@ -228,7 +228,6 @@ var DBConnectorClass : TPersistentClass;
|
||||
begin
|
||||
testValues[ftString] := testStringValues;
|
||||
testValues[ftFixedChar] := testStringValues;
|
||||
testValues[ftDate] := testDateValues;
|
||||
for i := 0 to testValuesCount-1 do
|
||||
begin
|
||||
testValues[ftFloat,i] := FloatToStr(testFloatValues[i]);
|
||||
@ -242,6 +241,7 @@ begin
|
||||
testValues[ftCurrency,i] := CurrToStr(testCurrencyValues[i]);
|
||||
// DecimalSeparator:='.';
|
||||
testValues[ftBCD,i] := CurrToStr(testCurrencyValues[i]);
|
||||
testValues[ftDate,i] := DateToStr(StrToDate(testDateValues[i], 'yyyy/mm/dd', '-'));
|
||||
end;
|
||||
|
||||
if dbconnectorname = '' then raise Exception.Create('There is no db-connector specified');
|
||||
|
Loading…
Reference in New Issue
Block a user