Browse Source

* Use double for mysql ftfloat related tests.
Patches by Lacak2, Mantis #21388

git-svn-id: trunk@20456 -

marco 13 years ago
parent
commit
9b6a69502c

+ 1 - 0
packages/fcl-db/tests/sqldbtoolsunit.pas

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

+ 1 - 1
packages/fcl-db/tests/testfieldtypes.pas

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