Text and Blob data types share the same FIELD_TYPE constants. Makes it necessary to adjust type detection logic.

This commit is contained in:
Ansgar Becker
2009-11-18 21:30:26 +00:00
parent 3daa4dcf18
commit 9002a8d42d

View File

@@ -658,6 +658,9 @@ begin
FDatatypes[i] := Datatypes[Low(Datatypes)];
for j:=Low(Datatypes) to High(Datatypes) do begin
if Field._type = Datatypes[j].NativeType then begin
// Text and Blob types share the same constants (see FIELD_TYPEs in mysql_api)
if ((Field.flags and BINARY_FLAG) = BINARY_FLAG) and (Datatypes[j].Category <> dtcBinary) then
continue;
FDatatypes[i] := Datatypes[j];
break;
end;