mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Add test for clickhouse: tokenize ==
as Token::DoubleEq (#981)
This commit is contained in:
parent
e718ce6c42
commit
4903bd4b8b
4 changed files with 36 additions and 3 deletions
|
@ -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 {})],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue