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

From: Sehrope Sarkuni <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 42d6bf: Fix metadata test to use explicit PK/FK names (#1442)
Date: 2019-03-16 17:52:06
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/35df0d-42d6bf@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 42d6bfa51929a333c3d2d8c098997a9f01514eac
https://github.com/pgjdbc/pgjdbc/commit/42d6bfa51929a333c3d2d8c098997a9f01514eac
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
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.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2019-03-20 13:28:52 [pgjdbc/pgjdbc] 85b428: Update checkstyle to 8.18
Previous Message rnveach 2019-03-15 13:07:14 [pgjdbc/pgjdbc] 35df0d: fix: improper indentation for javadoc (#1434)