diff options
| author | RobotScribe <quentinso@theodo.fr> | 2020-04-29 15:22:59 -0400 |
|---|---|---|
| committer | Gord Thompson <gord@gordthompson.com> | 2020-05-15 15:50:32 -0600 |
| commit | 103260ddb476c5354b3201f92636c474f2a83c35 (patch) | |
| tree | fbec060d33e0a6c3770c9d5ce7818432497ad6ef /test/requirements.py | |
| parent | 9821bddfcb3c94cea13b7f19bcb27845b0dc1ed8 (diff) | |
| download | sqlalchemy-103260ddb476c5354b3201f92636c474f2a83c35.tar.gz | |
Add with_for_update mysql new functionalities
Fixes: #4860
# Description
Add nowait, skip_lock, of arguments to for_update_clause for mysql
### Checklist
This pull request is:
- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests. one line code fixes without tests will not be accepted.
- [x] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.
**Have a nice day!**
Closes: #5290
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5290
Pull-request-sha: 490e822e73e92ffe63cf45df9c49f3b31af1954d
Change-Id: Ibd2acc47b538c601c69c8fb954776035ecab4c6c
Diffstat (limited to 'test/requirements.py')
| -rw-r--r-- | test/requirements.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/requirements.py b/test/requirements.py index cf9168f5a..d0560f579 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -1616,3 +1616,7 @@ class DefaultRequirements(SuiteRequirements): def supports_distinct_on(self): """If a backend supports the DISTINCT ON in a select""" return only_if(["postgresql"]) + + @property + def supports_for_update_of(self): + return only_if(lambda config: config.db.dialect.supports_for_update_of) |
