Add test for clickhouse: tokenize == as Token::DoubleEq (#981)

This commit is contained in:
Lukasz Stefaniak 2023-10-02 13:39:44 +02:00 committed by GitHub
parent e718ce6c42
commit 4903bd4b8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 3 deletions

View file

@ -6792,10 +6792,10 @@ fn parse_time_functions() {
// Validating Parenthesis
let sql_without_parens = format!("SELECT {}", func_name);
let mut ast_without_parens = select_localtime_func_call_ast.clone();
let mut ast_without_parens = select_localtime_func_call_ast;
ast_without_parens.special = true;
assert_eq!(
&Expr::Function(ast_without_parens.clone()),
&Expr::Function(ast_without_parens),
expr_from_projection(&verified_only_select(&sql_without_parens).projection[0])
);
}