Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2alp-0004JB-Ml for pgsql-jdbc@arkaria.postgresql.org; Mon, 03 Aug 2020 13:44:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k2alo-0006Co-K4 for pgsql-jdbc@arkaria.postgresql.org; Mon, 03 Aug 2020 13:44:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2alo-0006Cg-Bp for pgsql-jdbc@lists.postgresql.org; Mon, 03 Aug 2020 13:44:52 +0000 Received: from out-17.smtp.github.com ([192.30.252.200]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2all-00028s-O0 for pgsql-jdbc@lists.postgresql.org; Mon, 03 Aug 2020 13:44:51 +0000 Received: from github-lowworker-cf59896.ash1-iad.github.net (github-lowworker-cf59896.ash1-iad.github.net [10.56.112.26]) by smtp.github.com (Postfix) with ESMTP id 71ACE5C0D3E for ; Mon, 3 Aug 2020 06:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1596462288; bh=2lSwg9OCFGlCWHDgkKdYm6TsBxzFVddBewIMl1ox/G0=; h=Date:From:To:Subject:From; b=cCLrBC9ITcnQEoYBKWikpqZt/AYZLD5e4I9yd84d9eJkTHhgJM2d7ryWw0UZ6pnMm QB+M4w8Fmoe2FAipCj/xuFjvgHnL1TrLP6ej64A9iuzU6wEFOzx2r5/hf3BU2NAZEn HJz5h5dJyeLUlfJkSUzkT2VUrGo07p8gTux1ZRmw= Date: Mon, 03 Aug 2020 06:44:48 -0700 From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 08507f: Fix: change order of checks for oid vs primary key... 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: 08507f8e04b0da47c09a296fae095a45c412c7b8 https://github.com/pgjdbc/pgjdbc/commit/08507f8e04b0da47c09a296fae095a45c412c7b8 Author: Dave Cramer Date: 2020-08-03 (Mon, 03 Aug 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/UpdateableResultTest.java Log Message: ----------- Fix: change order of checks for oid vs primary keys. Fixes #1613 (#1839) * Fix: change order of checks for oid vs primary keys. Fixes #1613 * add test to make sure we can still use an oid for a primary key * Use invalid cursor state for resultset that is not updatable. This is a breaking change