From a95fd7b7de8c3492d8267b2007508d579ff50848 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 23 Dec 2024 20:51:10 +0100 Subject: Merging upstream version 26.0.1. Signed-off-by: Daniel Baumann --- tests/dialects/test_tsql.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/dialects/test_tsql.py') diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index 6136599..e8cd696 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -1579,6 +1579,11 @@ WHERE }, ) + self.validate_identity( + "SELECT DATEADD(DAY, DATEDIFF(DAY, -3, GETDATE()), '08:00:00')", + "SELECT DATEADD(DAY, DATEDIFF(DAY, CAST('1899-12-29' AS DATETIME2), CAST(GETDATE() AS DATETIME2)), '08:00:00')", + ) + def test_lateral_subquery(self): self.validate_all( "SELECT x.a, x.b, t.v, t.y FROM x CROSS APPLY (SELECT v, y FROM t) t(v, y)", -- cgit v1.2.3