diff --git a/src/db.rs b/src/db.rs index efacbca9..39ae6dbb 100644 --- a/src/db.rs +++ b/src/db.rs @@ -5,8 +5,8 @@ use crate::execution::{build_write, try_collect}; use crate::expression::function::scala::ScalarFunctionImpl; use crate::expression::function::table::TableFunctionImpl; use crate::expression::function::FunctionSummary; -use crate::function::char_length::CharLength; use crate::function::char_length::CharacterLength; +use crate::function::char_length::CharLength; use crate::function::current_date::CurrentDate; use crate::function::lower::Lower; use crate::function::numbers::Numbers; diff --git a/src/function/char_length.rs b/src/function/char_length.rs index d4dc1383..b5a94d44 100644 --- a/src/function/char_length.rs +++ b/src/function/char_length.rs @@ -17,12 +17,10 @@ pub(crate) struct CharLength { summary: FunctionSummary, } -pub type CharacterLength = CharLength; - -impl CharacterLength { +impl CharLength { #[allow(unused_mut)] - pub(crate) fn new2() -> Arc { - let function_name = "character_length".to_lowercase(); + pub(crate) fn new() -> Arc { + let function_name = "char_length".to_lowercase(); let arg_types = vec![LogicalType::Varchar(None, CharLengthUnits::Characters)]; Arc::new(Self { summary: FunctionSummary { @@ -33,10 +31,12 @@ impl CharacterLength { } } -impl CharLength { +pub type CharacterLength = CharLength; + +impl CharacterLength { #[allow(unused_mut)] - pub(crate) fn new() -> Arc { - let function_name = "char_length".to_lowercase(); + pub(crate) fn new2() -> Arc { + let function_name = "character_length".to_lowercase(); let arg_types = vec![LogicalType::Varchar(None, CharLengthUnits::Characters)]; Arc::new(Self { summary: FunctionSummary {