Skip to content

Add pymysql to the list requiring encoding before submission, to work around the changes in pymysql 1.2.1 - #201

Merged
phdru merged 1 commit into
sqlobject:masterfrom
drnlm:bugfix/work_around_pymysql_changes
Oct 3, 2026
Merged

phdru merged 1 commit into
sqlobject:masterfrom
drnlm:bugfix/work_around_pymysql_changes

Conversation

@drnlm

@drnlm drnlm commented Oct 1, 2026

Copy link
Copy Markdown

PyMySQL changed from using 'surrogarescape' to using 'strict' encoding in the query method in 1.2.1 , so this adds it to the list of drivers where sqlobject encodes the query before passing it to the driver so we can still use 'surrogateescape'.

This fixes the tests failing with the latest PyMySQL release.

@phdru phdru self-assigned this Oct 1, 2026
@phdru
phdru merged commit 0dc2172 into sqlobject:master Oct 3, 2026
21 checks passed
@phdru

phdru commented Oct 3, 2026

Copy link
Copy Markdown
Member

Merged. Thanks!

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.

2 participants