8000 _ConnectionFairy.connection attribute is deprecated · Issue #715 · googleapis/python-spanner-sqlalchemy · GitHub
[go: up one dir, main page]

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
< 5DB7 div class="Box-sc-g0xbh4-0 HpFDd CommentDivider-module__CommentDividerRightLine--_guT1">

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

    0