Restrict regular expression in TDBConnection.GetDatatypeByName to very left characters, so it does not detect "ENUM('text','...') DEFAULT 'text'" columns as TEXT type. See http://www.heidisql.com/forum.php?t=16271

This commit is contained in:
Ansgar Becker
2014-09-04 16:11:16 +00:00
parent ea4701f73f
commit c70320a5ba

View File

@@ -1433,7 +1433,7 @@ begin
Types := FDatatypes[i].Name;
if FDatatypes[i].Names <> '' then
Types := Types + '|' + FDatatypes[i].Names;
rx.Expression := '\b('+Types+')\b';
rx.Expression := '^('+Types+')\b';
Match := rx.Exec(Datatype);
if Match then begin
if DeleteFromSource then