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

Skip to content

fix(dbapi): avoid running % format when no query parameters are passed #346

@tswast

Description

@tswast

Is your feature request related to a problem? Please describe.

It is unexpected to get format errors when a string contains %, but there are no query parameters in the query.

googleapis/python-bigquery-sqlalchemy#72

Describe the solution you'd like

In addition to checking if parameters is none, check if len(parameters) == 0 to avoid unnecessary format operations.

Metadata

Metadata

Labels

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