summaryrefslogtreecommitdiffstats
path: root/tests/dialects/test_tsql.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/dialects/test_tsql.py15
1 files changed, 15 insertions, 0 deletions
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",
+ },
+ )