Fix non working addition of new columns in MySQL. See http://www.heidisql.com/forum.php?t=16948

PostgreSQL: Detect all array style types as unknown type, e.g. TEXT[].
This commit is contained in:
Ansgar Becker
2014-11-14 17:09:08 +00:00
parent 0d61d18261
commit aa6ed7d9dd
4 changed files with 80 additions and 55 deletions

View File

@ -1190,7 +1190,7 @@ begin
Col.Name := NewText;
end;
2: begin // Data type
Col.DataType := DBObject.Connection.GetDatatypeByName(NewText, False);
Col.DataType := DBObject.Connection.GetDatatypeByName(NewText, False, Col.Name);
// Reset length/set for column types which don't support that
if not Col.DataType.HasLength then
Col.LengthSet := '';