Repository navigation
pgtype: preserve delimiters inside multirange bounds - #2651
Merged
jackc merged 1 commit intoSep 12, 2026
Merged
Conversation
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.
Text decoding of a custom text multirange fails when a bound contains a comma or
}.parseRangetreats these characters as multirange separators even when they belong to a range bound.Track range boundaries, quotes and escapes while splitting the elements. The regression uses PostgreSQL to construct two ranges with special characters in both endpoints and checks text and binary decoding. Parser tests also cover escaped delimiters and malformed input.
Tested with Go 1.25.13 and PostgreSQL 18.6 on Linux arm64:
Both regression tests fail on the base commit and pass with this change. Optional authentication, TLS and PgBouncer tests were not configured; the other Go, PostgreSQL and OS matrix combinations were not run locally.
This is an AI proposal produced with Codex. The task was to resume a held multirange parsing defect, reproduce it against PostgreSQL, and prepare a minimal fix with regression and broader tests. It has not had human code review.