[pgjdbc/pgjdbc] 82510e: RETURNING clause mistakenly added to CREATE and AL...

From: Eric Peterson <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 82510e: RETURNING clause mistakenly added to CREATE and AL...
Date: 2021-04-26 19:26:47
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/08e979-82510e@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 82510ed6da8733659f5a2560f029e3cded7b1d66
https://github.com/pgjdbc/pgjdbc/commit/82510ed6da8733659f5a2560f029e3cded7b1d66
Author: Eric Peterson <elpete(at)users(dot)noreply(dot)github(dot)com>
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.

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2021-04-26 19:27:51 [pgjdbc/pgjdbc] 47084e: fix: make sure the table have defined primary keys...
Previous Message Sehrope Sarkuni 2021-04-23 14:16:24 [pgjdbc/pgjdbc] 6acf09: test: Add paths-ignore to GitHub actions to skip o...