]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
test_for_update to recognise skip_locked for MariaDB-10.6 6998/head
authorDaniel Black <daniel@mariadb.org>
Wed, 8 Sep 2021 02:56:27 +0000 (12:56 +1000)
committerDaniel Black <daniel@mariadb.org>
Wed, 8 Sep 2021 02:56:58 +0000 (12:56 +1000)
Reference: https://mariadb.com/kb/en/select/#skip-locked

test/dialect/mysql/test_for_update.py

index 4fdf9541ac301f343f8acca46435d00c8fa6a1dc..a99435c4a67c216332655a84b0e8ebfe88e1cfa1 100644 (file)
@@ -409,14 +409,14 @@ class SkipLockedTest(fixtures.TablesTest):
             Column("value", Integer),
         )
 
-    @testing.only_on("mysql>=8")
+    @testing.only_on(["mysql>=8", "mariadb>=10.6"])
     def test_skip_locked(self, connection):
         stuff = self.tables.stuff
         stmt = stuff.select().with_for_update(skip_locked=True)
 
         connection.execute(stmt).fetchall()
 
-    @testing.only_on(["mysql<8", "mariadb"])
+    @testing.only_on(["mysql<8", "mariadb<10.6"])
     def test_unsupported_skip_locked(self, connection):
         stuff = self.tables.stuff
         stmt = stuff.select().with_for_update(skip_locked=True)