googleapis / googleapis/google-cloud-python

_ConnectionFairy.connection attribute is deprecated

Đang mở
#15,678 1 bình luận 0 reaction 1 người được giao Được giao cho @olavloite Xem trên GitHub
api: spanner priority: p2 type: bug
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.