From 0b7fdf5c8079fa3f09be1ba5823fb6274746303d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 9 Dec 2024 05:35:58 +0100 Subject: Merging upstream version 25.34.0. Signed-off-by: Daniel Baumann --- tests/dialects/test_tsql.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/dialects/test_tsql.py') diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py index 094e5f2..a0dbd90 100644 --- a/tests/dialects/test_tsql.py +++ b/tests/dialects/test_tsql.py @@ -2075,3 +2075,18 @@ FROM OPENJSON(@json) WITH ( "tsql": UnsupportedError, }, ) + + def test_next_value_for(self): + self.validate_identity( + "SELECT NEXT VALUE FOR db.schema.sequence_name OVER (ORDER BY foo), col" + ) + self.validate_all( + "SELECT NEXT VALUE FOR db.schema.sequence_name", + read={ + "oracle": "SELECT NEXT VALUE FOR db.schema.sequence_name", + "tsql": "SELECT NEXT VALUE FOR db.schema.sequence_name", + }, + write={ + "oracle": "SELECT NEXT VALUE FOR db.schema.sequence_name", + }, + ) -- cgit v1.2.3