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 1mQ5cD-00047Y-8f for pgsql-jdbc@arkaria.postgresql.org; Tue, 14 Sep 2021 10:24:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQ5cA-0001yq-7D for pgsql-jdbc@arkaria.postgresql.org; Tue, 14 Sep 2021 10:24:34 +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 1mQ5c9-0001yh-Tz for pgsql-jdbc@lists.postgresql.org; Tue, 14 Sep 2021 10:24:33 +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 1mQ5c5-00050B-RT for pgsql-jdbc@lists.postgresql.org; Tue, 14 Sep 2021 10:24:32 +0000 Received: from github.com (hubbernetes-node-002b40b.va3-iad.github.net [10.48.109.29]) by smtp.github.com (Postfix) with ESMTPA id DE98F34033D for ; Tue, 14 Sep 2021 03:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1631615068; bh=bbRhPOSnwVe4vPst3kVdPgtHNpxygAh5HEnxPYW7D/4=; h=Date:From:To:Subject:From; b=VqnPOOd1roSHNG4nX7gxQpXn4swpTbPTYCP13Z1ux3FT+xwRfr8IvrZz56idRo7cr xoNw4MM8IP64o3WCTNyBAU4nhftyCGh5RXaZc95jsxiND1HZ7To6xeH2mJ8HvdQ3+M 6iN9hAVzVPdIE07YaFKVmtC6zXN5M/eINiHaZEBE= Date: Tue, 14 Sep 2021 03:24:28 -0700 From: Jens Peters To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 2917c1: Backport PR2148 into 42.2.x (#2254) 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/release/42.2 Home: https://github.com/pgjdbc/pgjdbc Commit: 2917c1f2d448f68419c89530ffc742a3d693ed1e https://github.com/pgjdbc/pgjdbc/commit/2917c1f2d448f68419c89530ffc742a3d693ed1e Author: Jens Peters Date: 2021-09-14 (Tue, 14 Sep 2021) Changed paths: M CHANGELOG.md M README.md M docs/documentation/head/connect.md M pgjdbc/src/main/java/org/postgresql/core/BaseConnection.java M pgjdbc/src/main/java/org/postgresql/jdbc/BatchResultHandler.java M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java M pgjdbc/src/test/java/org/postgresql/jdbc/AbstractArraysTest.java M pgjdbc/src/test/java/org/postgresql/test/core/LogServerMessagePropertyTest.java Log Message: ----------- Backport PR2148 into 42.2.x (#2254) * docs: Add description of connection property logServerErrorDetail * fix: Avoid leaking error message details in JDBC batches when logServerErrorDetail is disabled * test: Add a test case for logServerErrorDetail with JDBC batches Co-authored-by: Frode Carlsen Co-authored-by: Sehrope Sarkuni