Skip to content

Commit 49dd0f3

Browse files
committed
Add a couple more postgres quarter identity tests
1 parent 6010302 commit 49dd0f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/dialects/test_postgres.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def test_postgres(self):
3131
self.assertIsInstance(expr, exp.Alter)
3232
self.assertEqual(expr.sql(dialect="postgres"), alter_table_only)
3333

34+
self.validate_identity("SELECT EXTRACT(QUARTER FROM CAST('2025-04-26' AS DATE))")
35+
self.validate_identity("SELECT DATE_TRUNC('QUARTER', CAST('2025-04-26' AS DATE))")
3436
self.validate_identity("STRING_TO_ARRAY('xx~^~yy~^~zz', '~^~', 'yy')")
3537
self.validate_identity("SELECT x FROM t WHERE CAST($1 AS TEXT) = 'ok'")
3638
self.validate_identity("SELECT * FROM t TABLESAMPLE SYSTEM (50) REPEATABLE (55)")

0 commit comments

Comments
 (0)