Skip to content

Unwrap context provided to psycopg2.extensions.quote_ident #198

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

Merged
merged 1 commit into from Jan 20, 2020
Merged

Unwrap context provided to psycopg2.extensions.quote_ident #198

merged 1 commit into from Jan 20, 2020

Conversation

labichn
Copy link
Contributor

@labichn labichn commented Jan 10, 2020

This PR fixes a bug in the use of psycopg2.extensions.quote_ident when psycopg2 is patched by this SDK. The bug is similar to the one fixed by #95, where a wrapped cursor or connection causes a type error.

The new test case gives a minimal example of the bug, which fails against the current master (4689220).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-io
Copy link

codecov-io commented Jan 10, 2020

Codecov Report

Merging #198 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
+ Coverage   83.84%   83.85%   +<.01%     
==========================================
  Files          77       77              
  Lines        3003     3004       +1     
==========================================
+ Hits         2518     2519       +1     
  Misses        485      485
Impacted Files Coverage Δ
aws_xray_sdk/ext/psycopg2/patch.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4689220...a83b482. Read the comment docs.

@chanchiem
Copy link
Contributor

Thank you very much for your contribution :)

@chanchiem chanchiem merged commit 37e57bb into aws:master Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants