mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
csvtab: use columns
when specified
This commit is contained in:
parent
b60ffe1940
commit
b89b574f81
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user