Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary array index #1863

Merged
merged 25 commits into from
Aug 19, 2020
Merged

Binary array index #1863

merged 25 commits into from
Aug 19, 2020

Conversation

bokken
Copy link
Member

@bokken bokken commented Aug 19, 2020

All Submissions:

  • [ x] Have you followed the guidelines in our Contributing document?
  • [x ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Changes to Existing Features:

  • Does this break existing behaviour? If so please explain.
    All binary array representations changing to be 1 based, which matches the string representation.
  • [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?

@davecramer
Copy link
Member

that was quick. Thanks!

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2020

Codecov Report

Merging #1863 into master will increase coverage by 0.02%.
The diff coverage is 90.90%.

@@             Coverage Diff              @@
##             master    #1863      +/-   ##
============================================
+ Coverage     69.21%   69.23%   +0.02%     
- Complexity     4193     4201       +8     
============================================
  Files           197      197              
  Lines         17996    17984      -12     
  Branches       2916     2914       -2     
============================================
- Hits          12456    12452       -4     
+ Misses         4188     4182       -6     
+ Partials       1352     1350       -2     

@davecramer
Copy link
Member

Do you have time to add an entry into CHANGELOG just noting this was a regression fix

@davecramer
Copy link
Member

are we good to push this ?

@bokken
Copy link
Member Author

bokken commented Aug 19, 2020

Looks like there is 1 more test I lost some changes in while re-basing. Hold please.

@bokken
Copy link
Member Author

bokken commented Aug 19, 2020

@davecramer the changes look good to me now.

@bokken
Copy link
Member Author

bokken commented Aug 19, 2020

@davecramer it seems like the test which is failing is flaky and unrelated to these changes:

FAILURE  10.7sec, org.postgresql.replication.PhysicalReplicationTest > restartPhysicalReplicationWithoutRepeatMessage
    java.lang.AssertionError: Interrupt physical replication and restart from lastReceiveLSN should not lead to repeat messages skip part of them
    Expected: <true>
         but: was <false>
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.postgresql.replication.PhysicalReplicationTest.restartPhysicalReplicationWithoutRepeatMessage(PhysicalReplicationTest.java:253)

@davecramer
Copy link
Member

ya, I'm not too worried about that one. At some point someone should try to fix it, but yes it is flaky.

is this ready to go then ?

@bokken
Copy link
Member Author

bokken commented Aug 19, 2020

Ready to go.

@davecramer davecramer merged commit fe09f8d into pgjdbc:master Aug 19, 2020
davecramer pushed a commit to davecramer/pgjdbc that referenced this pull request Aug 20, 2020
Fix the binary representation of arrays to be 1 based rather than 0
based.
pgjdbc#1860

* fix: binary array 1 based index
code formatting
changelog

Co-authored-by: Okken <BO8979@cerner.net>
Co-authored-by: BO8979 <BO8979@W1971362.northamerica.cerner.net>
davecramer pushed a commit to davecramer/pgjdbc that referenced this pull request Aug 20, 2020
Fix the binary representation of arrays to be 1 based rather than 0
based.
pgjdbc#1860

* fix: binary array 1 based index
code formatting
changelog

Co-authored-by: Okken <BO8979@cerner.net>
Co-authored-by: BO8979 <BO8979@W1971362.northamerica.cerner.net>
davecramer added a commit that referenced this pull request Aug 21, 2020
* docs: add release notes for 42.2.16 (#1858)

* Binary array index (#1863)

Fix the binary representation of arrays to be 1 based rather than 0
based.
#1860

Co-authored-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Co-authored-by: Brett Okken <brett.okken.os@gmail.com>
Co-authored-by: Okken <BO8979@cerner.net>
Co-authored-by: BO8979 <BO8979@W1971362.northamerica.cerner.net>
vlsi added a commit that referenced this pull request Aug 21, 2020
* docs: add release notes for 42.2.16 (#1858)

* Binary array index (#1863)

Fix the binary representation of arrays to be 1 based rather than 0
based.
#1860

Co-authored-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Co-authored-by: Brett Okken <brett.okken.os@gmail.com>
Co-authored-by: Okken <BO8979@cerner.net>
Co-authored-by: BO8979 <BO8979@W1971362.northamerica.cerner.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants