googleapis / googleapis/google-cloud-python

_ConnectionFairy.connection attribute is deprecated

Aperta
#15,678 1 commento 0 reazioni 1 assegnatario Assegnata a @olavloite Vedi su GitHub
api: spanner priority: p2 type: bug
Lingua principale
Python
Stelle
5.4k
Fork
1.8k
Merge medio
2g 23h
PR unite (30g)
123

Descrizione

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
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.