Skip to content

Conversation

beniwohli
Copy link
Contributor

What does this pull request do?

The query might be supplied as already encoded byte string (e.g. when using psycopg2.extras.execute_values). In this case, truncation of the query fails unless we decode the query again using the connection encoding.

Related issues

closes #991

@ghost
Copy link

ghost commented Jan 4, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #994 updated

  • Start Time: 2021-01-05T14:19:46.780+0000

  • Duration: 23 min 16 sec

Test stats 🧪

Test Results
Failed 0
Passed 11539
Skipped 8356
Total 19895

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 11539
Skipped 8356
Total 19895

@beniwohli beniwohli merged commit d453aa6 into elastic:master Jan 5, 2021
@beniwohli beniwohli deleted the psycopg2-binary-queries branch January 5, 2021 15:30
beniwohli added a commit to beniwohli/apm-agent-python that referenced this pull request Sep 14, 2021
* properly support already-encoded SQL strings with psycopg2 fixes elastic#991 * skip test on pypy since psycopg2cffi is missing the needed function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants