Support for postgres String Constants with Unicode Escapes (#1355)

This commit is contained in:
Ophir LOJKINE 2024-07-29 23:18:16 +02:00 committed by GitHub
parent c3ba2f33c6
commit bc15f7b4ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 180 additions and 0 deletions

View file

@ -40,6 +40,10 @@ impl Dialect for PostgreSqlDialect {
ch.is_alphabetic() || ch.is_ascii_digit() || ch == '$' || ch == '_'
}
fn supports_unicode_string_literal(&self) -> bool {
true
}
/// See <https://www.postgresql.org/docs/current/sql-createoperator.html>
fn is_custom_operator_part(&self, ch: char) -> bool {
matches!(