[pgjdbc/pgjdbc] 82510e: RETURNING clause mistakenly added to CREATE and AL...
[pgjdbc/pgjdbc] 82510e: RETURNING clause mistakenly added to CREATE and AL...
От:
Eric Peterson <noreply@github.com>
Дата:
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.