]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add warning for skip_locked with MariaDB backend.
authorGord Thompson <gord@gordthompson.com>
Sun, 13 Sep 2020 22:38:13 +0000 (16:38 -0600)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Sep 2020 14:47:42 +0000 (10:47 -0400)
commitf14fb98c7b2f66cde35edd24b9140e919a4e2181
treeedc9f1fa9fc7762151c83bdc2640de8f82301d67
parent9d4c15a8da2e9d30d84fbe1cef3e45832a64bf96
Add warning for skip_locked with MariaDB backend.

The "skip_locked" keyword used with ``with_for_update()`` will emit a
warning when used on MariaDB backends, and will then be ignored.   This is
a deprecated behavior that will raise in SQLAlchemy 1.4, as an application
that requests "skip locked" is looking for a non-blocking operation which
is not available on those backends.

Fixes: #5578
Change-Id: I49ccb6c6ff46eafed12b77f51e1da8e0e397966c
(cherry picked with major changes from commit b25d0cda90fe906fda2fe8401a810c4da0bf7268)
doc/build/changelog/unreleased_13/5578.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_compiler.py
test/dialect/mysql/test_for_update.py