"""
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
)
@testing.requires.fetch_first
+ @testing.requires.fetch_expression
def test_expr_fetch_offset(self, connection):
table = self.tables.some_table
self._assert_result(
@property
def fetch_first(self):
- return only_on(["postgresql", "mssql >= 11", "oracle >= 12"])
+ return only_on(
+ ["postgresql", "mssql >= 11", "oracle >= 12", "mariadb >= 10.6"]
+ )
@property
def fetch_percent(self):
@property
def fetch_ties(self):
- return only_on(["postgresql >= 13", "mssql >= 11", "oracle >= 12"])
+ return only_on(
+ [
+ "postgresql >= 13",
+ "mssql >= 11",
+ "oracle >= 12",
+ "mariadb >= 10.6",
+ ]
+ )
@property
def fetch_no_order_by(self):
- return only_on(["postgresql", "oracle >= 12"])
+ return only_on(["postgresql", "oracle >= 12", "mariadb >= 10.6"])
@property
def fetch_offset_with_options(self):
+ # use together with fetch_first
return skip_if("mssql")
+ @property
+ def fetch_expression(self):
+ # use together with fetch_first
+ return skip_if("mariadb")
+
@property
def autoincrement_without_sequence(self):
return skip_if("oracle")