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 1mZZ8e-0001oG-1c for pgsql-jdbc@arkaria.postgresql.org; Sun, 10 Oct 2021 13:45:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mZZ8c-0006Kv-GU for pgsql-jdbc@arkaria.postgresql.org; Sun, 10 Oct 2021 13:45:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZZ8c-0006Kl-8M for pgsql-jdbc@lists.postgresql.org; Sun, 10 Oct 2021 13:45:14 +0000 Received: from out-20.smtp.github.com ([192.30.252.203]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mZZ8W-000511-Rj for pgsql-jdbc@lists.postgresql.org; Sun, 10 Oct 2021 13:45:13 +0000 Received: from github.com (hubbernetes-node-355c978.va3-iad.github.net [10.48.200.57]) by smtp.github.com (Postfix) with ESMTPA id D429EE0486 for ; Sun, 10 Oct 2021 06:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1633873506; bh=Aj4A1kGEuf+HXi2BRj+y0/613HH/72daE9fZdA1gX2k=; h=Date:From:To:Subject:From; b=V0oLEW/ye8jrUAZ9PG2BblNYCdVcwOjcqD7zbYjXIzdPUwtfD/11mzVNRlyG9swEp whSeDPFdYFn0ddEqhvGlnAYtTYSATwG8ADu1uHvtaQFygB7dAz0K3Ji6C+dCsWLeCq c1f/aJ8XkcPQwFp93jfLWGlQcJMMH+8xVmB37iCY= Date: Sun, 10 Oct 2021 06:45:06 -0700 From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 50d6ab: fix; do not add double quotes to identifiers alrea... 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: 50d6aba9dcb3be0df7ea39abce1b23b6d8367fa8 https://github.com/pgjdbc/pgjdbc/commit/50d6aba9dcb3be0df7ea39abce1b23b6d8367fa8 Author: Dave Cramer Date: 2021-10-10 (Sun, 10 Oct 2021) 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/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/core/v3/QueryExecutorImpl.java M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java M pgjdbc/src/test/java/org/postgresql/core/ParserTest.java M pgjdbc/src/test/java/org/postgresql/core/ReturningParserTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc3/CompositeQueryParseTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc3/SqlCommandParseTest.java A pgjdbc/src/test/java/org/postgresql/test/jdbc3/TestReturning.java Log Message: ----------- fix; do not add double quotes to identifiers already double quoted fixes Issue #2223 (#2224) * fix; do not add double quotes to identifiers already double quoted fixes Issue #2223 * add test case for quoted identifier * Added tests for mixed case columns in the returning clause * Add a property QUOTE_RETURNING_IDENTIFIERS which determines if we put double quotes around identifiers that are provided in the returning array. There are some ORMs that now quote all identifiers and if we in turn quote them this will cause an error. * update docs for quoteReturning * Remove unnecessary change * Unnecessary change