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 1iZZqz-0004i2-QM for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Nov 2019 12:22:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iZZqy-0007RE-4t for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Nov 2019 12:22:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZZqx-0007R7-SR for pgsql-jdbc@lists.postgresql.org; Tue, 26 Nov 2019 12:21:59 +0000 Received: from out-14.smtp.github.com ([192.30.254.197]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iZZqu-0006Vs-Nw for pgsql-jdbc@lists.postgresql.org; Tue, 26 Nov 2019 12:21:59 +0000 Received: from github-lowworker-5825cd4.ac4-iad.github.net (github-lowworker-5825cd4.ac4-iad.github.net [10.52.22.68]) by smtp.github.com (Postfix) with ESMTP id 703B212125C for ; Tue, 26 Nov 2019 04:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1574770913; bh=778rd9Q2xOgU77LMkaYZKCqhSVJ+aOsUq5WaJVAxK9o=; h=Date:From:To:Subject:From; b=dz/kB1yd/+qLiqlQJEXceutKTBHVNFdiLP6oURGVbT7RNMMA+qC9DMgTSSZYzNhRm 7kth3aM67bTIXZk/0jTkQZHRHL8p5i8Ky4ITFt6WtezVSjkKBb9gNaueFd/vO1llF2 U6XO3pbd/j89A0ovmfudmMZTsQLPWPxT9Sg9wePs= Date: Tue, 26 Nov 2019 04:21:53 -0800 From: GregN To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] d75591: feat: add new "escapeSyntaxCallMode" connection pr... 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: d75591385538cd704a066c4ed026f767ce3784ab https://github.com/pgjdbc/pgjdbc/commit/d75591385538cd704a066c4ed026f767ce3784ab Author: GregN Date: 2019-11-26 (Tue, 26 Nov 2019) Changed paths: M README.md M docs/documentation/head/connect.md M pgjdbc/src/main/java/org/postgresql/PGProperty.java M pgjdbc/src/main/java/org/postgresql/core/CachedQueryCreateAction.java M pgjdbc/src/main/java/org/postgresql/core/JdbcCallParseInfo.java M pgjdbc/src/main/java/org/postgresql/core/Parser.java M pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java M pgjdbc/src/main/java/org/postgresql/core/QueryExecutorBase.java M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java A pgjdbc/src/main/java/org/postgresql/jdbc/EscapeSyntaxCallMode.java M pgjdbc/src/test/java/org/postgresql/core/ParserTest.java A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeBaseTest.java A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeCallIfNoReturnTest.java A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeCallTest.java A pgjdbc/src/test/java/org/postgresql/test/jdbc3/EscapeSyntaxCallModeSelectTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3TestSuite.java Log Message: ----------- feat: add new "escapeSyntaxCallMode" connection property (#1560) The "escapeSyntaxCallMode" connection property allows you to specify how the driver transforms JDBC escape call syntax into underlying SQL, for invoking procedures and functions. The possible values of this property are: select, callIfNoReturn, or call In escapeSyntaxCallMode=select mode (the default), the driver always uses a SELECT statement (allowing function invocation only). In escapeSyntaxCallMode=callIfNoReturn mode, the driver uses a CALL statement (allowing procedure invocation) if there is no return parameter specified, otherwise the driver uses a SELECT statement. In escapeSyntaxCallMode=call mode, the driver always uses a CALL statement (allowing procedure invocation only). Prior to the addition of this connection property, the driver always used a SELECT statement for JDBC escape call syntax, which results in the following error when attempting to invoke a procedure: ERROR: xxxx is a procedure Hint: To call a procedure, use CALL