mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 00:45:37 +01:00
Refactor code
This commit is contained in:
@@ -118,12 +118,12 @@ pub fn prepare_select_plan(
|
||||
args_count,
|
||||
) {
|
||||
Ok(Func::Agg(f)) => {
|
||||
let count_args = vec![ast::Expr::Literal(
|
||||
ast::Literal::Numeric("1".to_string()),
|
||||
)];
|
||||
let agg_args: Result<Vec<Expr>, LimboError> = match args {
|
||||
// if args is None and its COUNT
|
||||
None if name.0.to_uppercase() == "COUNT" => {
|
||||
let count_args = vec![ast::Expr::Literal(
|
||||
ast::Literal::Numeric("1".to_string()),
|
||||
)];
|
||||
Ok(count_args)
|
||||
}
|
||||
// if args is None and the function is not COUNT
|
||||
|
||||
Reference in New Issue
Block a user