We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d48fde commit d6f9cb1Copy full SHA for d6f9cb1
src/dialect/redshift.rs
@@ -125,4 +125,8 @@ impl Dialect for RedshiftSqlDialect {
125
fn allow_extract_single_quotes(&self) -> bool {
126
true
127
}
128
+
129
+ fn supports_string_literal_backslash_escape(&self) -> bool {
130
+ true
131
+ }
132
tests/sqlparser_redshift.rs
@@ -397,3 +397,8 @@ fn parse_extract_single_quotes() {
397
let sql = "SELECT EXTRACT('month' FROM my_timestamp) FROM my_table";
398
redshift().verified_stmt(sql);
399
400
401
+#[test]
402
+fn parse_string_literal_backslash_escape() {
403
+ redshift().one_statement_parses_to(r#"SELECT 'l\'auto'"#, "SELECT 'l''auto'");
404
+}
0 commit comments