diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2021-10-08 14:28:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-10-08 14:28:11 +0000 |
| commit | 292fd0b2460b6bdbf1e0c8da3bc4eb92dbec392c (patch) | |
| tree | e46734b91f9fd0cb06e14b1efe9dc07b634204db /lib | |
| parent | 3e2b584ce74b26a9cb46c1021193739486b18062 (diff) | |
| parent | 6d581161b3cbea06b0d4f612b9f8be2781f1ae5c (diff) | |
| download | sqlalchemy-292fd0b2460b6bdbf1e0c8da3bc4eb92dbec392c.tar.gz | |
Merge "Enable tests of fetch/offset for mariadb>=10.6"
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 9 | ||||
| -rw-r--r-- | lib/sqlalchemy/testing/suite/test_select.py | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index f6e79042c..a546e1feb 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -1441,6 +1441,15 @@ class SuiteRequirements(Requirements): return exclusions.closed() @property + def fetch_expression(self): + """backend supports fetch / offset with expression in them, like + + SELECT * FROM some_table + OFFSET 1 + 1 ROWS FETCH FIRST 1 + 1 ROWS ONLY + """ + return exclusions.closed() + + @property def autoincrement_without_sequence(self): """If autoincrement=True on a column does not require an explicit sequence. This should be false only for oracle. diff --git a/lib/sqlalchemy/testing/suite/test_select.py b/lib/sqlalchemy/testing/suite/test_select.py index c96c62a45..a3475f651 100644 --- a/lib/sqlalchemy/testing/suite/test_select.py +++ b/lib/sqlalchemy/testing/suite/test_select.py @@ -467,6 +467,7 @@ class FetchLimitOffsetTest(fixtures.TablesTest): ) @testing.requires.fetch_first + @testing.requires.fetch_expression def test_expr_fetch_offset(self, connection): table = self.tables.some_table self._assert_result( |
