remove pattern matching over Name::Quoted

This commit is contained in:
Nikita Sivukhin
2025-09-25 12:44:32 +04:00
parent 506908e648
commit 2f4d76ec6d
10 changed files with 34 additions and 48 deletions

View File

@@ -73,7 +73,7 @@ use super::{
};
use parking_lot::RwLock;
use rand::{thread_rng, Rng};
use turso_parser::ast;
use turso_parser::ast::{self, Name};
use turso_parser::parser::Parser;
use super::{
@@ -5320,11 +5320,12 @@ pub fn op_function(
for column in &mut columns {
match column.expr.as_mut() {
ast::Expr::Id(ast::Name::Ident(id))
| ast::Expr::Id(ast::Name::Quoted(id))
if normalize_ident(id) == rename_from =>
ast::Expr::Id(id)
if normalize_ident(id.as_str()) == rename_from =>
{
*id = column_def.col_name.as_str().to_owned();
*id = Name::Ident(
column_def.col_name.as_str().to_owned(),
);
}
_ => {}
}