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 1lb6sf-0004Ws-Ed for pgsql-jdbc@arkaria.postgresql.org; Mon, 26 Apr 2021 19:26:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lb6se-0002Z3-4g for pgsql-jdbc@arkaria.postgresql.org; Mon, 26 Apr 2021 19:26:52 +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 1lb6sd-0002Yv-Tl for pgsql-jdbc@lists.postgresql.org; Mon, 26 Apr 2021 19:26:51 +0000 Received: from out-25.smtp.github.com ([192.30.252.208] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lb6sb-0000fc-Ei for pgsql-jdbc@lists.postgresql.org; Mon, 26 Apr 2021 19:26:51 +0000 Received: from github.com (hubbernetes-node-1fbe417.ash1-iad.github.net [10.56.120.39]) by smtp.github.com (Postfix) with ESMTPA id 2AC5C84037E for ; Mon, 26 Apr 2021 12:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1619465207; bh=8h4HGUWzDVqunXna11J2HTezXz08aJzKMbgTP+s1Gfs=; h=Date:From:To:Subject:From; b=MimaZ88x6e9bnSpTGHq5GwqwjEJ7SpjPBHNvw4c3DL0L/19dOyljt8PHI38bBVF7q vIM+49VPD/QRfq8aTqJF2SG4ja+Wt3Wdsuq9xXaZeCRIgCLt2ZuHjb5KiEO/jdfVBF 3cqI8bL367WdthQc4pKPiPB7VPZn3/vk6tPwCmZo= Date: Mon, 26 Apr 2021 12:26:47 -0700 From: Eric Peterson To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 82510e: RETURNING clause mistakenly added to CREATE and AL... 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: 82510ed6da8733659f5a2560f029e3cded7b1d66 https://github.com/pgjdbc/pgjdbc/commit/82510ed6da8733659f5a2560f029e3cded7b1d66 Author: Eric Peterson Date: 2021-04-26 (Mon, 26 Apr 2021) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/Parser.java M pgjdbc/src/main/java/org/postgresql/core/SqlCommandType.java M pgjdbc/src/test/java/org/postgresql/core/ParserTest.java Log Message: ----------- RETURNING clause mistakenly added to CREATE and ALTER table statements (#2119) * Add tests to show how ON DELETE and ON UPDATE clauses fail the parser. * Add two more failing tests showing alter fails as well. * Attempt to fix tests by extending the parser to be aware of CREATE and ALTER statements.