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 1kSHUB-0002ox-Bw for pgsql-jdbc@arkaria.postgresql.org; Tue, 13 Oct 2020 10:24:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kSHU8-0001AQ-5g for pgsql-jdbc@arkaria.postgresql.org; Tue, 13 Oct 2020 10:24:48 +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 1kSHU7-0001AJ-VM for pgsql-jdbc@lists.postgresql.org; Tue, 13 Oct 2020 10:24:48 +0000 Received: from out-19.smtp.github.com ([192.30.252.202]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSHU1-0001xo-9o for pgsql-jdbc@lists.postgresql.org; Tue, 13 Oct 2020 10:24:46 +0000 Received: from github.com (hubbernetes-node-ed15254.va3-iad.github.net [10.48.109.76]) by smtp.github.com (Postfix) with ESMTPA id 688DDE08C9 for ; Tue, 13 Oct 2020 03:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1602584680; bh=bc4BYxJVhG5pVnfKlpV8wknoS+rG2ouhR3lOnqdM83U=; h=Date:From:To:Subject:From; b=nkWZukD73FyN3s/YyjNF42FUJfbaQ6bE3Xo6Ys7+qXHZb0j5FPCVBG0KeiI9OAd2x ZVxJ1XZsWEe//A/UG7T1wx6bM+G+a/SUpVU25RndyAxO2G/pEioYV3FUfv5Y4o3o10 FtRCdPNNp8MzPHm8bQ+PeAejJhtwNEwBTunWkeFw= Date: Tue, 13 Oct 2020 03:24:40 -0700 From: Peter Eisentraut To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 770b6d: fix: send type void parameters as null value (#1922) 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: 770b6d3ebd8ac78dd24e4628740652aae2bb3efd https://github.com/pgjdbc/pgjdbc/commit/770b6d3ebd8ac78dd24e4628740652aae2bb3efd Author: Peter Eisentraut Date: 2020-10-13 (Tue, 13 Oct 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java Log Message: ----------- fix: send type void parameters as null value (#1922) The previous code sent parameters of type void (used for OUT parameters of functions) with a text value of "null". While this doesn't affect anything, since the value is ignored anyway, it's somewhat confusing, especially if it shows up in debug traces and error messages, and it's also a bit wasteful to send 4 bytes for nothing. So instead, send those parameters as a null value, which seems semantically saner.