* Use double for mysql ftfloat related tests.

Patches by Lacak2, Mantis #21388

git-svn-id: trunk@20456 -
This commit is contained in:
marco 2012-03-01 11:34:47 +00:00
parent 9dd87f9a6f
commit 9b6a69502c
2 changed files with 2 additions and 1 deletions

View File

@ -122,6 +122,7 @@ begin
begin
//MySQL recognizes BOOLEAN, but as synonym for TINYINT, not true sql boolean datatype
FieldtypeDefinitions[ftBoolean] := '';
FieldtypeDefinitions[ftFloat] := 'DOUBLE';
// Use 'DATETIME' for datetime-fields instead of timestamp, because
// mysql's timestamps are only valid in the range 1970-2038.
// Downside is that fields defined as 'TIMESTAMP' aren't tested

View File

@ -808,7 +808,7 @@ end;
procedure TTestFieldTypes.TestFloatParamQuery;
begin
TestXXParamQuery(ftFloat,'FLOAT',testFloatValuesCount);
TestXXParamQuery(ftFloat,FieldtypeDefinitions[ftFloat],testFloatValuesCount);
end;
procedure TTestFieldTypes.TestBCDParamQuery;