Normalize column names when creating virtual tables

Ensures consistent handling of column names between virtual and regular
tables and allows the use of quoted column names.
This commit is contained in:
Piotr Rzysko
2025-05-18 22:08:47 +02:00
parent ea0ec6a216
commit 6b454ea36f

View File

@@ -502,7 +502,7 @@ pub fn columns_from_create_table_body(body: &ast::CreateTableBody) -> crate::Res
}
let column =
Column {
name: Some(name.0.clone()),
name: Some(normalize_ident(&name.0)),
ty: match column_def.col_type {
Some(ref data_type) => {
// https://www.sqlite.org/datatype3.html