mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
core: Add default column name
This commit is contained in:
parent
cd27068807
commit
351a032cc1
5 changed files with 18 additions and 19 deletions
|
@ -686,7 +686,7 @@ impl Limbo {
|
|||
if rows.num_columns() > 0 {
|
||||
let header = (0..rows.num_columns())
|
||||
.map(|i| {
|
||||
let name = rows.get_column_name(i).cloned().unwrap_or_default();
|
||||
let name = rows.get_column_name(i);
|
||||
Cell::new(name).add_attribute(Attribute::Bold)
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue