mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-02 13:12:16 +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
|
@ -65,10 +65,9 @@ impl Dialect for PostgreSqlDialect {
|
|||
}
|
||||
|
||||
fn is_identifier_start(&self, ch: char) -> bool {
|
||||
// See https://www.postgresql.org/docs/11/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
|
||||
// We don't yet support identifiers beginning with "letters with
|
||||
// diacritical marks"
|
||||
ch.is_alphabetic() || ch == '_'
|
||||
ch.is_alphabetic() || ch == '_' ||
|
||||
// PostgreSQL implements Unicode characters in identifiers.
|
||||
!ch.is_ascii()
|
||||
}
|
||||
|
||||
fn is_identifier_part(&self, ch: char) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue