googleapis / googleapis/google-cloud-python

_ConnectionFairy.connection attribute is deprecated

Abierto
#15,678 1 comentario 0 reacciones 1 asignado Asignado a @olavloite Ver en GitHub
api: spanner priority: p2 type: bug
Lenguaje dominante
Python
Estrellas
5.4k
Forks
1.8k
Merge medio
2 d 23 h
PR fusionados (30 d)
123

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.