core: Add default column name

This commit is contained in:
wyhaya 2025-02-11 07:03:51 +00:00
parent cd27068807
commit 351a032cc1
5 changed files with 18 additions and 19 deletions

View file

@ -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<_>>();