We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a847e44 commit 3ed4ad9Copy full SHA for 3ed4ad9
src/dialect/redshift.rs
@@ -121,4 +121,8 @@ impl Dialect for RedshiftSqlDialect {
121
fn supports_array_typedef_with_brackets(&self) -> bool {
122
true
123
}
124
+
125
+ fn allow_extract_single_quotes(&self) -> bool {
126
+ true
127
+ }
128
tests/sqlparser_redshift.rs
@@ -391,3 +391,9 @@ fn test_parse_nested_quoted_identifier() {
391
.parse_sql_statements(r#"SELECT 1 AS ["1]"#)
392
.is_err());
393
394
395
+#[test]
396
+fn parse_extract_single_quotes() {
397
+ let sql = "SELECT EXTRACT('month' FROM my_timestamp) FROM my_table";
398
+ redshift().verified_stmt(&sql);
399
+}
0 commit comments