--- JvCsvData.pas	2005-09-12 15:05:14.997239008 +0200
+++ JvCsvData_fixed.pas	2005-09-12 15:05:15.075227152 +0200
@@ -3687,6 +3687,7 @@
   PtrCsvColumn: PCsvColumn;
   CsvFieldName: string;
   ColNum, I: Integer;
+  Pos1: Integer;  //[2005-09-12] -- TP
 begin
   if not ValidateHeaderRow then
   begin
@@ -3707,6 +3708,13 @@
     // Get a string in the format COLUMNAME:Options
     CsvFieldName := StrEatWhiteSpace(GetCsvRowItem(@CsvFieldRec, ColNum));
 
+    //[2005-09-12] by Tomasz Poradowski (tomasz.poradowski@roner.pl)
+    //BUGFIX: we need to strip options from column names, so that
+    //  FCsvColumns.FindByName() can find the real column
+    Pos1 := Pos(':', CsvFieldName);
+    if (Pos1 > 0) then
+      CsvFieldName := Copy(CsvFieldName, 1, Pos1 - 1);
+
     if CsvFieldName = '' then
       JvCsvDatabaseError(FTableName, RsEErrorProcessingFirstLine);
 
