Skip to content

fix: decode MySQL GEOMETRY columns as ByteArray - #446

Merged
oshai merged 2 commits into
masterfrom
fix/issue-423-mysql-geometry
Nov 10, 2026
Merged

oshai merged 2 commits into
masterfrom
fix/issue-423-mysql-geometry

Conversation

@oshai

@oshai oshai commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Map ColumnTypes.FIELD_TYPE_GEOMETRY (255) to ByteArrayDecoder (binaryDecoderFor) and ByteArrayColumnDecoder (textDecoderFor) in DecoderRegistry so MySQL spatial columns (POINT, GEOMETRY, GEOMETRYCOLLECTION, etc.) decode cleanly as ByteArray in both text and prepared-statement binary protocols.
  • Also map binary-charset FIELD_TYPE_TINY_BLOB, FIELD_TYPE_MEDIUM_BLOB, and FIELD_TYPE_LONG_BLOB to ByteArrayColumnDecoder in textDecoderFor (aligning with binaryDecoderFor).
  • Add unit tests in DecoderRegistrySpec and Testcontainers integration coverage in BinaryColumnsSpec.

Fixes #423

@oshai
oshai merged commit c0fbe20 into master Nov 10, 2026
2 checks passed
@oshai
oshai deleted the fix/issue-423-mysql-geometry branch November 10, 2026 04:08
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.

I want to get a geocollection type data from mysql.

1 participant