mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Text and Blob data types share the same FIELD_TYPE constants. Makes it necessary to adjust type detection logic.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user