From 6b454ea36f3b8d539bae29c8a57d1d789a082791 Mon Sep 17 00:00:00 2001 From: Piotr Rzysko Date: Sun, 18 May 2025 22:08:47 +0200 Subject: [PATCH] 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. --- core/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.rs b/core/util.rs index 40a2c0902..3415aefdc 100644 --- a/core/util.rs +++ b/core/util.rs @@ -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