pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feedFrom: awadhesh14 (@awadhesh14) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: [pgjdbc/pgjdbc] PR #3633: fix: add validation for rectangular arrays in ArrayEncoding Closes #3567
Date: Sat, 17 May 2025 08:44:03 +0000
Message-ID: <[email protected]> (raw)
Add validation to reject jagged arrays during array creation.
Previously, jagged arrays caused silent corruption in text mode
or protocol errors in binary mode.
Validation includes:
- Recursive dimension checks for multi-dimensional arrays
- Null element preservation (PostgreSQL-compatible)
- Detailed error messages with array indices
- Full compatibility with valid rectangular arrays
Closes #3567
### All Submissions:
* [x] Have you followed the guidelines in our [Contributing](https://github.com/pgjdbc/pgjdbc/blob/master/CONTRIBUTING.md) document?
* [x] Have you checked to ensure there aren't other open [Pull Requests](../../pulls) for the same update/change?
### Changes to Existing Features:
* [ ] Does this break existing behaviour? If so please explain.
* [x] Have you added an explanation of what your changes do and why you'd like us to include them?
* [x] Have you written new tests for your core changes, as applicable?
* [x] Have you successfully run tests with your changes locally?
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: github://pgjdbc/pgjdbc
Cc: [email protected], [email protected]
Subject: Re: [pgjdbc/pgjdbc] PR #3633: fix: add validation for rectangular arrays in ArrayEncoding Closes #3567
In-Reply-To: <<[email protected]>>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox