From 93393043565c2feb75ff47ba0ed2738e96cf0bc7 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 14 Nov 2022 19:56:34 +0100 Subject: [PATCH] Fix trailing linebreak counted to last column name in first CSV line --- source/csv_detector.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/csv_detector.pas b/source/csv_detector.pas index d820357d..8409d056 100644 --- a/source/csv_detector.pas +++ b/source/csv_detector.pas @@ -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