csvtab: use columns when specified

This commit is contained in:
gwenn 2018-05-14 19:23:17 +02:00
parent b60ffe1940
commit b89b574f81

View File

@ -220,6 +220,10 @@ impl VTab for CSVTab {
}
}
}
} else if let Some(n_col) = n_col {
for i in 0..n_col {
cols.push(format!("c{}", i));
}
}
if cols.is_empty() && schema.is_none() {