public inbox for [email protected]  
help / color / mirror / Atom feed
From: Dave Cramer <[email protected]>
To: [email protected]
Subject: [pgjdbc/pgjdbc] aff581: Fix Issue #2928 number of ports not equal to numbe...
Date: Thu, 20 Jul 2023 12:55:50 -0700
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]> (raw)

  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: aff581fe806f1c1cdc8bcd9e5a981e37691b44b5
      https://github.com/pgjdbc/pgjdbc/commit/aff581fe806f1c1cdc8bcd9e5a981e37691b44b5
  Author: Dave Cramer <[email protected]>
  Date:   2023-07-20 (Thu, 20 Jul 2023)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/optional/BaseDataSourceFailoverUrlsTest.java

  Log Message:
  -----------
  Fix Issue #2928 number of ports not equal to number of servers in datasource (#2929)

* In BaseDataSource, check to make sure the number of servers is equal to the number of ports.
Throw an IllegalArgumentException if they are not.
Added test case to ensure

* changed test to remove nesting
Add the ports and server names to the error message








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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] aff581: Fix Issue #2928 number of ports not equal to numbe...
  In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/[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