Add identifier start unicode support for Postegres, MySql and Redshift (#1944)

This commit is contained in:
etgarperets 2025-07-15 10:26:11 +03:00 committed by GitHub
parent c5e6ba5e7d
commit ecd5d88638
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 8 deletions

View file

@ -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 {