mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 22:30:27 +02:00
* Use double for mysql ftfloat related tests.
Patches by Lacak2, Mantis #21388 git-svn-id: trunk@20456 -
This commit is contained in:
parent
9dd87f9a6f
commit
9b6a69502c
@ -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
|
||||
|
@ -808,7 +808,7 @@ end;
|
||||
procedure TTestFieldTypes.TestFloatParamQuery;
|
||||
|
||||
begin
|
||||
TestXXParamQuery(ftFloat,'FLOAT',testFloatValuesCount);
|
||||
TestXXParamQuery(ftFloat,FieldtypeDefinitions[ftFloat],testFloatValuesCount);
|
||||
end;
|
||||
|
||||
procedure TTestFieldTypes.TestBCDParamQuery;
|
||||
|
Loading…
Reference in New Issue
Block a user