Repository navigation
release v2.3.1 - #813
release v2.3.1#813
Conversation
Convert set and frozenset values through Connection.literal so quoting uses the connection character set and SQL mode. Deprecate Set2Str, remove its default mapping, and dispatch built-in literals using exact type checks.
Publish wheels and sdist through Trusted Publishing after both Windows builds succeed, only when a new v* tag is pushed. Lock the new Actions dependencies and document the release procedure.
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #813 +/- ##
==========================================
+ Coverage 88.86% 90.81% +1.94%
==========================================
Files 7 7
Lines 548 686 +138
==========================================
+ Hits 487 623 +136
- Misses 61 63 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Prepare mysqlclient 2.3.1 with a fix for SQL injection through Python
setquery parameters whenNO_BACKSLASH_ESCAPESis enabled: GHSA-m9c3-99x3-77g6.Update the version and release notes, deprecate
Set2Str, and route set/frozenset escaping through the connection. This also includes tag-triggered Trusted Publishing for Windows wheels and the sdist, its Actions lockfile updates, and the release procedure.Validation:
NO_BACKSLASH_ESCAPESmodes, with utf8mb4 and latin1; the legacy injection path reproduced and the fixed path rejected the injected condition.twine check.Summary by CodeRabbit
setandfrozensetquery parameters, accounting for the connection’s character set and SQL mode.Connection.literal()handling for built-in types and subclasses.MySQLdb.converters.Set2Str; sets are no longer registered for automatic conversion.