Hi,
It seems that the makeColumns function doesn't work in my case, my first column keep his double quote even if I specify the enclosure option :
this line (from Csv class / makColumns)
$columns = array_flip(str_getcsv(fgets($handle), $this->delimiter, $this->enclosure));
return
array(3) { [""FOO""]=> int(0) ["BAR"]=> int(1) ["FUZ"]=> int(2) }
So it trigger a PDOException: SQLSTATE[HY093]
Okay my bad, my first line contain some weird invisible chars (UTF8-BOM) at the begining, so the str_getcsv fail to parse it.
Sorry, I will close this issue :)
Hi, It seems that the makeColumns function doesn't work in my case, my first column keep his double quote even if I specify the enclosure option : this line (from Csv class / makColumns)
$columns = array_flip(str_getcsv(fgets($handle), $this->delimiter, $this->enclosure));
returnarray(3) { [""FOO""]=> int(0) ["BAR"]=> int(1) ["FUZ"]=> int(2) }
So it trigger a PDOException: SQLSTATE[HY093]