mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-12 03:34:20 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user