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

@ -336,6 +336,14 @@ fn parse_create_table() {
);
}
#[test]
fn parse_double_equal() {
clickhouse().one_statement_parses_to(
r#"SELECT foo FROM bar WHERE buz == 'buz'"#,
r#"SELECT foo FROM bar WHERE buz = 'buz'"#,
);
}
fn clickhouse() -> TestedDialects {
TestedDialects {
dialects: vec![Box::new(ClickHouseDialect {})],