remove normalization of identifiers - this will be unnecessary

This commit is contained in:
Nikita Sivukhin
2025-09-25 18:11:11 +04:00
parent fdf8ca88fd
commit 9f2f8438e0

View File

@@ -3289,7 +3289,7 @@ pub enum BindingBehavior {
/// Rewrite ast::Expr in place, binding Column references/rewriting Expr::Id -> Expr::Column
/// using the provided TableReferences, and replacing anonymous parameters with internal named
/// ones, as well as normalizing any DoublyQualified/Qualified quoted identifiers.
/// ones
pub fn bind_and_rewrite_expr<'a>(
top_level_expr: &mut ast::Expr,
mut referenced_tables: Option<&'a mut TableReferences>,
@@ -3319,13 +3319,6 @@ pub fn bind_and_rewrite_expr<'a>(
));
param_state.next_param_idx += 1;
}
ast::Expr::Qualified(ast::Name::Quoted(ns), ast::Name::Quoted(c))
| ast::Expr::DoublyQualified(_, ast::Name::Quoted(ns), ast::Name::Quoted(c)) => {
*expr = ast::Expr::Qualified(
ast::Name::exact(normalize_ident(ns.as_str())),
ast::Name::exact(normalize_ident(c.as_str())),
);
}
ast::Expr::Between {
lhs,
not,