Skip to content

Accept nonstandard column catalogs - #195

Merged
blackbeam merged 2 commits into
blackbeam:masterfrom
t8y2:dbx/relaxed-column-catalog
Sep 21, 2026
Merged

blackbeam merged 2 commits into
blackbeam:masterfrom
t8y2:dbx/relaxed-column-catalog

Conversation

@t8y2

@t8y2 t8y2 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • accept any valid length-encoded catalog value in column definition packets
  • preserve the received catalog when serializing the parsed column again
  • keep def as the catalog generated by Column::new

Motivation

The MySQL protocol documents the catalog field as def, but some MySQL-compatible distributed databases return a different length-encoded value. The catalog is not otherwise used by the column parser, yet the current constant-value parser rejects the entire result set with Invalid catalog value in the column definition.

Treating the field as protocol data instead of a constant keeps standard MySQL behavior unchanged while allowing compatible servers to return their own catalog value.

Validation

  • cargo fmt -- --check
  • cargo check --tests --no-default-features --features 'flate2/zlib test' --profile features-subsets
  • cargo build
  • cargo test --features test
  • (cd derive && cargo test)
  • mysql_async master builds against this branch with default-rustls client_ed25519 chrono rust_decimal

@blackbeam
blackbeam merged commit 374c9d5 into blackbeam:master Sep 21, 2026
1 check passed
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