Skip to content

Fix bytea TEXT encoding for PostgreSQL data rows#37772

Merged
terrymanu merged 1 commit intoapache:masterfrom
jonasHanhan:fix/pg-bytea-text-encoding
Jan 19, 2026
Merged

Fix bytea TEXT encoding for PostgreSQL data rows#37772
terrymanu merged 1 commit intoapache:masterfrom
jonasHanhan:fix/pg-bytea-text-encoding

Conversation

@jonasHanhan
Copy link
Contributor

Summary

  • Encode bytea values as PostgreSQL TEXT format (\x + hex) to avoid truncation in clients
  • Keep binary format behavior unchanged
  • Update unit test to assert TEXT bytea encoding

Related issues

Testing

  • ./mvnw -pl database/protocol/dialect/postgresql -am -DskipITs -Dspotless.skip=true -Dtest=PostgreSQLDataRowPacketTest -Dsurefire.failIfNoSpecifiedTests=false test

@terrymanu terrymanu added this to the 5.5.4 milestone Jan 19, 2026
@terrymanu terrymanu merged commit 25033f4 into apache:master Jan 19, 2026
145 checks passed
terrymanu added a commit to terrymanu/shardingsphere that referenced this pull request Jan 19, 2026
terrymanu added a commit that referenced this pull request Jan 19, 2026
@RaigorJiang RaigorJiang modified the milestones: 5.5.4, 5.5.3 Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants