diff --git a/sqlglot/dialects/mysql.py b/sqlglot/dialects/mysql.py index 5cc34b613f..611c527a63 100644 --- a/sqlglot/dialects/mysql.py +++ b/sqlglot/dialects/mysql.py @@ -670,6 +670,7 @@ def concat_exprs( return self.expression(exp.GroupConcat, this=this, separator=separator) class Generator(generator.Generator): + INTERVAL_ALLOWS_PLURAL_FORM = False LOCKING_READS_SUPPORTED = True NULL_ORDERING_SUPPORTED = None JOIN_HINTS = False diff --git a/tests/dialects/test_presto.py b/tests/dialects/test_presto.py index 108e9162a5..f1bbcc13d9 100644 --- a/tests/dialects/test_presto.py +++ b/tests/dialects/test_presto.py @@ -210,6 +210,8 @@ def test_interval_plural_to_singular(self): "bigquery": f"SELECT INTERVAL '1' {expected}", "presto": f"SELECT INTERVAL '1' {expected}", "trino": f"SELECT INTERVAL '1' {expected}", + "mysql": f"SELECT INTERVAL '1' {expected}", + "doris": f"SELECT INTERVAL '1' {expected}", }, )