[pgjdbc/pgjdbc] 42d6bf: Fix metadata test to use explicit PK/FK names (#1442)

Sehrope Sarkuni <[email protected]> Sat, 16 Mar 2019 10:52:06 -0700
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 42d6bfa51929a333c3d2d8c098997a9f01514eac
      https://github.com/pgjdbc/pgjdbc/commit/42d6bfa51929a333c3d2d8c098997a9f01514eac
  Author: Sehrope Sarkuni <[email protected]>
  Date:   2019-03-16 (Sat, 16 Mar 2019)

  Changed paths:
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java

  Log Message:
  -----------
  Fix metadata test to use explicit PK/FK names (#1442)

Changes testCrossReference() to validate the retrieved primary and foreign key columns
against their expected values. Previously it would have accepted them in either order or
the same value repeated twice for each.

Also checks to ensure that the expected number of rows are actually returned. Previously
it would have skipped all the checks if no rows were returned.