Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: consistent percents handling in DB API query #619

Merged
merged 3 commits into from
Apr 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo in comment
  • Loading branch information
plamut authored Apr 16, 2021
commit 42f14e4225e0bd7b6f69fb4d18f6355fe6a043a2
2 changes: 1 addition & 1 deletion google/cloud/bigquery/dbapi/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def _format_operation(operation, parameters=None):
``parameters`` argument.
"""
if parameters is None or len(parameters) == 0:
return operation.replace("%%", "%") # Still do precents de-escaping.
return operation.replace("%%", "%") # Still do percent de-escaping.

if isinstance(parameters, collections_abc.Mapping):
return _format_operation_dict(operation, parameters)
Expand Down