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 1n2Chx-0001Oq-7d for pgsql-jdbc@arkaria.postgresql.org; Tue, 28 Dec 2021 13:40:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n2Chu-000291-Dd for pgsql-jdbc@arkaria.postgresql.org; Tue, 28 Dec 2021 13:40:02 +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 1n2Cht-00028g-Us for pgsql-jdbc@lists.postgresql.org; Tue, 28 Dec 2021 13:40:02 +0000 Received: from out-18.smtp.github.com ([192.30.252.201] helo=smtp.github.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2Chp-0006jv-Qn for pgsql-jdbc@lists.postgresql.org; Tue, 28 Dec 2021 13:40:00 +0000 Received: from github.com (hubbernetes-node-2c640d0.va3-iad.github.net [10.48.206.63]) by smtp.github.com (Postfix) with ESMTPA id B911D34037C for ; Tue, 28 Dec 2021 05:39:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1640698796; bh=IqbB21daC2LTaqfBIBoPM0T98fxd5jutyNWQj7cuuHU=; h=Date:From:To:Subject:From; b=ZIEl8S3P/tcInHE5w0tSEvFmX8yS6sQPzpC4dh082jS07lA7eimgAKvSCOE23s6iC 3U9nBEe215mp1Fl2fCxi4ozmB8wQmed7aAMKLdDmptQMr3bm6593h31M+c/fqLBT6j 8SoGCs/Khqf8u1w+fvZbf/qhd4oBnKCxTeNojWGc= Date: Tue, 28 Dec 2021 05:39:56 -0800 From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 922d4f: fix: do not close refcursor after reading if fetch... 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: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 922d4f11b258be0f471fd09f55063187a0db2b06 https://github.com/pgjdbc/pgjdbc/commit/922d4f11b258be0f471fd09f55063187a0db2b06 Author: Dave Cramer Date: 2021-12-28 (Tue, 28 Dec 2021) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java A pgjdbc/src/test/java/org/postgresql/test/jdbc2/RefCursorFetchTest.java Log Message: ----------- fix: do not close refcursor after reading if fetchsize has been set fixes ISSUE #2227 (#2371) * fix: do not close refcursor after reading if fetchsize has been set fixes ISSUE #2227