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:
paul 2009-12-29 03:30:33 +00:00
parent 5cc182ac07
commit 6b1f84087d
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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');