Pool does not reset connections after they're returned to the pool
Offen
enhancement
- Vorherrschende Sprache
- Python
- Sterne
- 1.9k
- Forks
- 272
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
```
async with aiomysql.create_pool(autocommit=False) as pool:
async with pool.connect() as conn:
conn.autocommit(True)
```
When next resue connection,the connection maybe autocommit=True,but pool settings is autocommit=False。
fix:
```
def release(conn):
conn.autocommit= init_autocommit
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.