You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "RaigorJiang (via GitHub)" <gi...@apache.org> on 2025/06/30 05:18:03 UTC

[PR] Fix column length for PostgreSQLStringBinaryProtocolValue [shardingsphere]

RaigorJiang opened a new pull request, #35840:
URL: https://github.com/apache/shardingsphere/pull/35840

   Fixes #35038.
   
   The reason for the exception is that the length of the string is returned in the `getColumnLength` method, but the actual output data is of byte[] type.
   When the value content is Chinese, the length of the byte[] obtained by the `getBytes` method is different from the length of the string.
   
   Changes proposed in this pull request:
     - In the getColumnLength method, the length of the byte[] data obtained by getBytes is output
     - In order to obtain the correct charset, the payload object needs to be passed in the interface.
     - Update test cases
   
   ---
   
   Before committing this PR, I'm sure that I have checked the following options:
   - [x] My code follows the [code of conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) of this project.
   - [x] I have self-reviewed the commit code.
   - [x] I have (or in comment I request) added corresponding labels for the pull request.
   - [x] I have passed maven check locally : `./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [ ] I have made corresponding changes to the documentation.
   - [x] I have added corresponding unit tests for my changes.
   - [x] I have updated the Release Notes of the current development version. For more details, see [Update Release Note](https://shardingsphere.apache.org/community/en/involved/contribute/contributor/)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix column length for PostgreSQLStringBinaryProtocolValue [shardingsphere]

Posted by "zhaojinchao95 (via GitHub)" <gi...@apache.org>.
zhaojinchao95 merged PR #35840:
URL: https://github.com/apache/shardingsphere/pull/35840


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org