N°3251 (see also PR#152) - CSV data synchro allows "<NULL>" to be interpreted as "Let the attribute unchanged for the current row"

This commit is contained in:
rquetiez
2020-08-13 21:49:30 +02:00
parent d679deba02
commit a1f5d8041e

View File

@@ -534,9 +534,9 @@ try
$aValues = array(); // Used to build the insert query
foreach ($aRow as $iCol => $value)
{
if ($value === null)
if ($value === null) // Source CSV: "<NULL>"
{
$aValues[] = 'NULL';
$aValues[] = null;
}
elseif ($aIsDateToTransform[$iCol] !== false)
{