diff options
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r-- | tests/test_parser.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index c7e1dbe..035b5de 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -839,3 +839,16 @@ class TestParser(unittest.TestCase): ), ) self.assertEqual(ast.sql(dialect=dialect), "CREATE SCHEMA catalog.schema") + + def test_values_as_identifier(self): + sql = "SELECT values FROM t WHERE values + 1 > x" + for dialect in ( + "bigquery", + "clickhouse", + "duckdb", + "postgres", + "redshift", + "snowflake", + ): + with self.subTest(dialect): + self.assertEqual(parse_one(sql, dialect=dialect).sql(dialect=dialect), sql) |