Skip to content

fix: apply connection compression option - #20

Merged
skhe merged 1 commit into
mainfrom
codex/compression-connection-option
Sep 26, 2026
Merged

skhe merged 1 commit into
mainfrom
codex/compression-connection-option

Conversation

@skhe

@skhe skhe commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Forward compress_msg=0/1 to the Go driver and report the negotiated compression state through the Python connection property.
  • Reject invalid compression values and changes after login.
  • Reject explicit use_stmt_pool=1 because the underlying driver does not implement statement caching; accept use_stmt_pool=0.
  • Update API documentation and regression evidence.

Validation

  • Before fix: compress_msg=1 read back as 0, invalid value 2 and use_stmt_pool=1 were silently accepted.
  • Official ARM DM8 UTF-8: 188 passed, 2 deselected, 0 skipped.
  • Official ARM DM8 GB18030: 188 passed, 2 deselected, 0 skipped.
  • Go bridge: go test ./... passed.

@skhe
skhe merged commit 55dee3b into main Sep 26, 2026
18 checks passed
@skhe
skhe deleted the codex/compression-connection-option branch September 26, 2026 17:00
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.

1 participant