We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a317cbc + 182eae8 commit 02ea2d6Copy full SHA for 02ea2d6
2 files changed
src/dialect/mysql.rs
@@ -216,6 +216,11 @@ impl Dialect for MySqlDialect {
216
fn supports_key_column_option(&self) -> bool {
217
true
218
}
219
+
220
+ /// See: <https://dev.mysql.com/doc/refman/9.7/en/group-by-modifiers.html>
221
+ fn supports_group_by_with_modifier(&self) -> bool {
222
+ true
223
+ }
224
225
226
/// `LOCK TABLES`
tests/sqlparser_mysql.rs
@@ -4900,3 +4900,8 @@ fn parse_adjacent_string_literal_concatenation() {
4900
let sql = r#"SELECT 'M' "y" 'S' "q" 'l'"#;
4901
mysql().one_statement_parses_to(sql, r"SELECT 'MySql'");
4902
4903
4904
+#[test]
4905
+fn parse_group_by_with_rollup() {
4906
+ mysql().verified_stmt("SELECT * FROM tbl GROUP BY col1, col2 WITH ROLLUP");
4907
+}
0 commit comments