googleapis / googleapis/google-cloud-python
_ConnectionFairy.connection attribute is deprecated
Ouverte
api: spanner
priority: p2
type: bug
- Langage dominant
- Python
- Étoiles
- 5.4k
- Forks
- 1.8k
- Merge moyen
- 3 j 4 h
- PR mergées (30 j)
- 122
Description
Looks like the library is using the deprecated `dbapi_connection.connection` and should switch to `dbapi_connection.driver_connection`
There are several occurrences in `sqlalchemy_spanner.py`
This recreates when using SQLAlchemy.
```
SADeprecationWarning: The _ConnectionFairy.connection attribute is deprecated; please use 'driver_connection' (deprecated since: 2.0) dbapi_connection = dbapi_connection.connection
```
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.