mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 14:28:22 +00:00
Fix escaping of trailing quote in quoted identifiers (#505)
* Generalize EscapeSingleQuoteString to arbitrary quote character * Fix escaping of trailing quote in quoted identifiers * Add new tests instead of modifying existing tests
This commit is contained in:
parent
cc2559c097
commit
d19c6c323c
4 changed files with 56 additions and 18 deletions
|
@ -1441,6 +1441,11 @@ fn parse_quoted_identifier() {
|
|||
pg_and_generic().verified_stmt(r#"SELECT "quoted "" ident""#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_quoted_identifier_2() {
|
||||
pg_and_generic().verified_stmt(r#"SELECT """quoted ident""""#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_local_and_global() {
|
||||
pg_and_generic().verified_stmt("CREATE LOCAL TEMPORARY TABLE table (COL INT)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue