mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-23 08:15:00 +00:00
Add identifier start unicode support for Postegres, MySql and Redshift (#1944)
This commit is contained in:
parent
c5e6ba5e7d
commit
ecd5d88638
4 changed files with 18 additions and 8 deletions
|
@ -11151,9 +11151,7 @@ fn parse_non_latin_identifiers() {
|
|||
let supported_dialects = TestedDialects::new(vec![
|
||||
Box::new(GenericDialect {}),
|
||||
Box::new(DuckDbDialect {}),
|
||||
Box::new(PostgreSqlDialect {}),
|
||||
Box::new(MsSqlDialect {}),
|
||||
Box::new(MySqlDialect {}),
|
||||
]);
|
||||
assert!(supported_dialects
|
||||
.parse_sql_statements("SELECT 💝 FROM table1")
|
||||
|
@ -16147,3 +16145,14 @@ fn test_identifier_unicode_support() {
|
|||
]);
|
||||
let _ = dialects.verified_stmt(sql);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_identifier_unicode_start() {
|
||||
let sql = r#"SELECT 💝phone AS 💝 FROM customers"#;
|
||||
let dialects = TestedDialects::new(vec![
|
||||
Box::new(MySqlDialect {}),
|
||||
Box::new(RedshiftSqlDialect {}),
|
||||
Box::new(PostgreSqlDialect {}),
|
||||
]);
|
||||
let _ = dialects.verified_stmt(sql);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue