Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5DTg-0005dO-JO for pgsql-jdbc@arkaria.postgresql.org; Sat, 16 Mar 2019 17:52:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h5DTf-0003u9-Bj for pgsql-jdbc@arkaria.postgresql.org; Sat, 16 Mar 2019 17:52:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5DTe-0003hP-Ub for pgsql-jdbc@lists.postgresql.org; Sat, 16 Mar 2019 17:52:11 +0000 Received: from out-1.smtp.github.com ([192.30.252.192]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5DTc-0002OC-2x for pgsql-jdbc@lists.postgresql.org; Sat, 16 Mar 2019 17:52:09 +0000 Date: Sat, 16 Mar 2019 10:52:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1552758726; bh=xz5b3bPhTK01oIH7kGYwkA3DVaaD7K/d1si4bhyw+FM=; h=Date:From:To:Subject:From; b=HEn2zfDReyjnzuRLQPtx82lXuPmU2Wri6gYX251fsQoCn0W0WIUEYrtg/4uZPXWcy Yfxf4RRIggJ+E+eB4qlYzztHcod+2Jell2xtfuiSq399bQCbdawYV9INduX7MY8knW KGYDXtWC5VRV3LQ0mdqdgf9mCpwBILwed9ZcOotg= From: Sehrope Sarkuni To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 42d6bf: Fix metadata test to use explicit PK/FK names (#1442) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 42d6bfa51929a333c3d2d8c098997a9f01514eac https://github.com/pgjdbc/pgjdbc/commit/42d6bfa51929a333c3d2d8c098997a9f01514eac Author: Sehrope Sarkuni 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.