Normalize a SQL identifier: lowercase unquoted, preserve quoted.
(ident: &sqlparser::ast::Ident)
| 11 | |
| 12 | /// Normalize a SQL identifier: lowercase unquoted, preserve quoted. |
| 13 | pub fn normalize_ident(ident: &sqlparser::ast::Ident) -> String { |
| 14 | if ident.quote_style.is_some() { |
| 15 | ident.value.clone() |
| 16 | } else { |
| 17 | ident.value.to_lowercase() |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | /// Normalize a compound object name, rejecting schema-qualified forms. |
| 22 | /// |
no test coverage detected