Message-ID: From: "sly461 (@sly461)" To: "pgjdbc/pgjdbc" Date: Tue, 29 Jul 2025 08:20:52 +0000 Subject: [pgjdbc/pgjdbc] PR #3746: fix: traverse the current dimension to get the correct pos in PgArray#calcRemainingDataLength List-Id: X-GitHub-Author-Id: 32794108 X-GitHub-Author-Login: sly461 X-GitHub-Issue: 3746 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-State: merged X-GitHub-Type: pull_request X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3746 Content-Type: text/plain; charset=utf-8 Fixes #3743: 1. In calcRemainingDataLength, we should traverse the current dimension to get the correct pos. 2. Obviously, the positions of the parameters elementOid and pos are reversed. ### 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? ### New Feature Submissions: 1. [x] Does your submission pass tests? 2. [x] Does `./gradlew styleCheck` pass ? 3. [x] Have you added your new test classes to an existing test suite in alphabetical order? ### Changes to Existing Features: * [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?