Repository navigation
[jdbc-v2] FixedString trim method small optimization - #3480
Merged
Merged
Conversation
There was a problem hiding this comment.
Auto-approved by the AI review gate on 6517ca7. Details in the approver's comment on this pull request.
AI review gate — auto-approved
History (latest 5 heads, newest first)
|
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is port of change found while patch 0.11.3 review
This makes fixedString trimming more optimized.
Checklist
Delete items not relevant to your PR:
Note
Low Risk
Narrow performance refactor in JDBC string decoding with equivalent FixedString semantics and early return for other types.
Overview
trimFixedStringinResultSetImplnow checks whether the column isFixedStringbefore walking the string, so non-FixedStringvalues returned bygetStringandgetObjectskip padding/replacement-character trimming entirely.For
FixedStringcolumns the behavior is unchanged: trailing'\0'and U+FFFD from padding or truncated UTF-8 are still stripped before returning the value. The trim loop is refactored with clearer length variables but the same end result.Reviewed by Cursor Bugbot for commit 6517ca7. Bugbot is set up for automated code reviews on this repo. Configure here.