Skip to content

Commit

Permalink
fix the parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed May 22, 2024
1 parent 66df8d3 commit 654c836
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/sql/src/unparser/dialect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ pub trait Dialect {
pub struct DefaultDialect {}

impl Dialect for DefaultDialect {
fn identifier_quote_style(&self, _identifier: &str) -> Option<char> {
fn identifier_quote_style(&self, identifier: &str) -> Option<char> {
let identifier_regex = Regex::new(r"^[a-zA-Z_][a-zA-Z0-9_]*$").unwrap();
if ALL_KEYWORDS.contains(&_identifier.to_uppercase().as_str())
|| !identifier_regex.is_match(_identifier)
if ALL_KEYWORDS.contains(&identifier.to_uppercase().as_str())
|| !identifier_regex.is_match(identifier)
{
Some('"')
} else {
Expand Down

0 comments on commit 654c836

Please sign in to comment.