Thanks to visit codestin.com
Credit goes to github.com

Skip to content

_ConnectionFairy.connection attribute is deprecated #715

@rafi-rr

Description

@rafi-rr

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

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions