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 1iZZrf-0004jq-7F for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Nov 2019 12:22:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iZZrd-0008Qd-V8 for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Nov 2019 12:22:41 +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 1iZZrd-0008KI-J3 for pgsql-jdbc@lists.postgresql.org; Tue, 26 Nov 2019 12:22:41 +0000 Received: from out-20.smtp.github.com ([192.30.252.203]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iZZrb-0001Eq-4S for pgsql-jdbc@lists.postgresql.org; Tue, 26 Nov 2019 12:22:40 +0000 Date: Tue, 26 Nov 2019 04:22:37 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1574770958; bh=arf2+I1KLTS/yut1Ip8/aJZ7+Bv+UvuIKP9axgTkKVg=; h=Date:From:To:Subject:From; b=a07JxXUhm9h2h2MMaIpDKGPz15moDOwyu0L5Zq6RKROGy8QlKj7+WWEzBjKUCPZCS RgoHkpIiwF+3IV9LmSha3YdHRXA4BvteoZSSiCcrkVmwmrNI0/ycTSqodDou8nXdrv jvm6OklXa2C3YI1mRA6z7osNVuE4y9tcfX3yNs6U= From: GregN To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] ed7467: fix: allow OUT parameter registration when using C... 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: ed74670fae932935a156eccfb4b1ff16758f5693 https://github.com/pgjdbc/pgjdbc/commit/ed74670fae932935a156eccfb4b1ff16758f5693 Author: GregN Date: 2019-11-26 (Tue, 26 Nov 2019) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/Parser.java M pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3CallableStatementTest.java Log Message: ----------- fix: allow OUT parameter registration when using CallableStatement native CALL (#1561) Currently, using CallableStatement, the PGJDBC driver will allow invocation of procedures using the native "call myproc(...)" syntax, provided the procedure only has IN parameters or no parameters. However, if the procedure has any INOUT parameters, then an attempt to invoke the CallableStatement's registerOutParameter() method, which is required in order to register the OUT part of the INOUT parameter, will fail with the following error: This statement does not declare an OUT parameter. Use { ?= call ... } to declare one. This fixes issue: https://github.com/pgjdbc/pgjdbc/issues/1545