mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-13 07:22:02 +00:00
Add support for string literal concatenation (#2003)
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Some checks failed
license / Release Audit Tool (RAT) (push) Has been cancelled
Rust / codestyle (push) Has been cancelled
Rust / lint (push) Has been cancelled
Rust / benchmark-lint (push) Has been cancelled
Rust / compile (push) Has been cancelled
Rust / docs (push) Has been cancelled
Rust / compile-no-std (push) Has been cancelled
Rust / test (beta) (push) Has been cancelled
Rust / test (nightly) (push) Has been cancelled
Rust / test (stable) (push) Has been cancelled
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
parent
eca65742ba
commit
cff28334be
4 changed files with 39 additions and 2 deletions
|
@ -17150,3 +17150,13 @@ fn test_parse_semantic_view_table_factor() {
|
|||
_ => panic!("Expected Query statement"),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_adjacent_string_literal_concatenation() {
|
||||
let sql = r#"SELECT 'M' "y" 'S' "q" 'l'"#;
|
||||
let dialects = all_dialects_where(|d| d.supports_string_literal_concatenation());
|
||||
dialects.one_statement_parses_to(sql, r"SELECT 'MySql'");
|
||||
|
||||
let sql = "SELECT * FROM t WHERE col = 'Hello' \n ' ' \t 'World!'";
|
||||
dialects.one_statement_parses_to(sql, r"SELECT * FROM t WHERE col = 'Hello World!'");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue