]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix AsyncEngine connect() bug when pool is exhausted
authorFantix King <fantix.king@gmail.com>
Mon, 31 Aug 2020 07:41:00 +0000 (03:41 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Mon, 31 Aug 2020 07:41:00 +0000 (03:41 -0400)
commitcae33a79017d955c7a35bf1810c18e13fd00b4f3
treea0309c92ffd35a58a9f013911941af5234bb2467
parent575b6dded9a25fca693f0aa7f6d7c6e735490460
Fix AsyncEngine connect() bug when pool is exhausted

### Description

Decorating the referenced `await_fallback` with `staticmethod` would stop `AsyncAdaptedQueue.await_` from being treated as a bound method.

### Checklist

This pull request is:

- [x] A short code fix
    Fixes #5546

**Have a nice day!**

Closes: #5547
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5547
Pull-request-sha: 6f18ee290e7d9fe24ce2a4a4ed8069b46082ca18

Change-Id: Ie335ee650f1dee0d1fce59e448217a48307b3435
lib/sqlalchemy/util/queue.py
test/ext/asyncio/test_engine_py3k.py