mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix trailing linebreak counted to last column name in first CSV line
This commit is contained in:
@@ -225,7 +225,7 @@ begin
|
||||
for Value in Row do begin
|
||||
Col := TTableColumn.Create(FConnection);
|
||||
if IgnoreLines > 0 then
|
||||
Col.Name := Value.OldText
|
||||
Col.Name := Trim(Value.OldText)
|
||||
else
|
||||
Col.Name := 'col_'+Row.IndexOf(Value).ToString;
|
||||
Col.DataType := FConnection.Datatypes[0]; // UNKNOWN by default
|
||||
|
||||
Reference in New Issue
Block a user