Skip to content

Commit

Permalink
enh(tables): allow symbols and numbers in col names
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Jan 24, 2024
1 parent 98eeaab commit e4b9da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/databases/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ impl Table {
None => Err(anyhow!("Row {} is not an object", row_index,))?,
};
match object.keys().find(|key| match key.chars().next() {
Some(c) => !c.is_ascii_lowercase(),
Some(c) => c.is_ascii_uppercase(),
None => false,
}) {
Some(key) => Err(anyhow!(
"Row {} has a key '{}' that is not lowercase",
"Row {} has a key '{}' that contains uppercase characters",
row_index,
key
))?,
Expand Down

0 comments on commit e4b9da7

Please sign in to comment.