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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

pip25
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 42d6bfa51929a333c3d2d8c098997a9f01514eac
      https://github.com/pgjdbc/pgjdbc/commit/42d6bfa51929a333c3d2d8c098997a9f01514eac
  Author: Sehrope Sarkuni <[hidden email]>
  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.