From da8fc943704a221b86f0f6938f4131f0dd679f82 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 04:50:21 +0200 Subject: Adding upstream version 23.12.1. Signed-off-by: Daniel Baumann --- tests/dialects/test_tsql.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/dialects/test_tsql.py') diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index aefd857..4a475f6 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -455,7 +455,6 @@ class TestTSQL(Validator): self.validate_identity("CAST(x AS UNIQUEIDENTIFIER)") self.validate_identity("CAST(x AS MONEY)") self.validate_identity("CAST(x AS SMALLMONEY)") - self.validate_identity("CAST(x AS ROWVERSION)") self.validate_identity("CAST(x AS IMAGE)") self.validate_identity("CAST(x AS SQL_VARIANT)") self.validate_identity("CAST(x AS BIT)") @@ -475,6 +474,16 @@ class TestTSQL(Validator): "hive": "CAST(x AS TIMESTAMP)", }, ) + self.validate_all( + "CAST(x AS ROWVERSION)", + read={ + "tsql": "CAST(x AS TIMESTAMP)", + }, + write={ + "tsql": "CAST(x AS ROWVERSION)", + "hive": "CAST(x AS BINARY)", + }, + ) def test__types_ints(self): self.validate_all( -- cgit v1.2.3