diff options
author | Federico Caselli <cfederico87@gmail.com> | 2021-10-04 17:59:42 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2021-10-08 14:05:57 +0200 |
commit | 6d581161b3cbea06b0d4f612b9f8be2781f1ae5c (patch) | |
tree | cc64381dc418bc087cf02d89b24f9233b8b50a1e /lib/sqlalchemy/testing | |
parent | 71e463506217e3acc379a3f459e68a81792a0aac (diff) | |
download | sqlalchemy-6d581161b3cbea06b0d4f612b9f8be2781f1ae5c.tar.gz |
Enable tests of fetch/offset for mariadb>=10.6
Fixes: #6999
Change-Id: I29cf3908a6c872611409a3e7256296314c81dea1
Diffstat (limited to 'lib/sqlalchemy/testing')
-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( |