Closed
Description
The lib now does not have ability to detect that some value in row is NULL.
col1, col2, col3
0,0,0
0,0,
0,,0
,0,0
When reading numeric rows
CSVReader<3, trim_chars<>, double_quote_escape<',', '\"'>> csv(file);
int col1, col2, col3;
csv.read_row(col1, col2, col3);
the columns with missing values are returned as 0, so we cannot determine wheather it is real 0 or NULL.
Possible proposal is to use some kind of "nullable" wrapping type.
CSVReader<3, trim_chars<>, double_quote_escape<',', '\"'>> csv(file);
Nullable<int> col1, col2, col3;
csv.read_row(col1, col2, col3);
if (col1.is_null()) { ... }
Metadata
Metadata
Assignees
Labels
No labels