diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-12-09 04:35:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-12-09 04:35:58 +0000 |
commit | 0b7fdf5c8079fa3f09be1ba5823fb6274746303d (patch) | |
tree | edc3d8cdec1a8eabd9361052fbfb7c14d719e6ce /tests/dialects/test_tsql.py | |
parent | Releasing debian version 25.32.1-1. (diff) | |
download | sqlglot-0b7fdf5c8079fa3f09be1ba5823fb6274746303d.tar.xz sqlglot-0b7fdf5c8079fa3f09be1ba5823fb6274746303d.zip |
Merging upstream version 25.34.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/dialects/test_tsql.py')
-rw-r--r-- | tests/dialects/test_tsql.py | 15 |
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", + }, + ) |