diff --git a/Classes/Core/Functional/Framework/DataHandling/DataSet.php b/Classes/Core/Functional/Framework/DataHandling/DataSet.php index 77f0c0b5..c6ee20e4 100644 --- a/Classes/Core/Functional/Framework/DataHandling/DataSet.php +++ b/Classes/Core/Functional/Framework/DataHandling/DataSet.php @@ -79,7 +79,7 @@ public static function import(string $path): void // types correctly (like Connection::PARAM_LOB) allows doctrine to create valid SQL $types = []; foreach ($element as $columnName => $columnValue) { - $columnType = $tableDetails->getColumn($columnName)->getType(); + $types[$columnName] = $columnType = $tableDetails->getColumn($columnName)->getType(); // JSON-Field data is converted (json-encode'd) within $connection->insert(), and since json field // data can only be provided json encoded in the csv dataset files, we need to decode them here. if ($element[$columnName] !== null @@ -87,7 +87,6 @@ public static function import(string $path): void ) { $element[$columnName] = $columnType->convertToPHPValue($columnValue, $platform); } - $types[] = $columnType->getBindingType(); } // Insert the row $connection->insert($tableName, $element, $types);