Skip to content

db_api: cursor class doesn't have _connection attribute #225

@HemangChothani

Description

@HemangChothani

Actual and correct method call:

except Aborted:
self.connection.retry_transaction()

While in few methods object tried to call a wrong attribute which doesn't exist:

self._connection.retry_transaction()
return self.fetchall()

self._connection.retry_transaction()
return self.fetchmany(size)

Metadata

Metadata

Labels

api: spannerIssues related to the googleapis/python-spanner 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