Pool does not reset connections after they're returned to the pool
Abierto
enhancement
- Lenguaje dominante
- Python
- Estrellas
- 1.9k
- Forks
- 272
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
```
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
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.