summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/asyncio/session.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2021-04-10 15:24:21 +0200
committerFederico Caselli <cfederico87@gmail.com>2021-04-10 15:24:21 +0200
commit3d41fad27de91800b89a199e67766066fd744103 (patch)
treec94245886d6a1a70fb09ecada2436319e75f49d1 /lib/sqlalchemy/ext/asyncio/session.py
parentf1f1005ebf3cc62a4bbf7cf5b0a6b77e749f5c3e (diff)
downloadsqlalchemy-3d41fad27de91800b89a199e67766066fd744103.tar.gz
Fix typo that prevented setting the ``bind``
attribute of an :class:`_asyncio.AsyncSession` to the correct value. Fixes: #6220 Change-Id: I91021351b8076e4aa4139af4b2cf359b3c0404af
Diffstat (limited to 'lib/sqlalchemy/ext/asyncio/session.py')
-rw-r--r--lib/sqlalchemy/ext/asyncio/session.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/asyncio/session.py b/lib/sqlalchemy/ext/asyncio/session.py
index c8377aa65..d8a5673eb 100644
--- a/lib/sqlalchemy/ext/asyncio/session.py
+++ b/lib/sqlalchemy/ext/asyncio/session.py
@@ -80,7 +80,7 @@ class AsyncSession:
):
kw["future"] = True
if bind:
- self.bind = engine
+ self.bind = bind
bind = engine._get_sync_engine_or_connection(bind)
if binds: