mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user