Skip to content

Commit

Permalink
Fix: "bare-label" keywords for column aliases, parsing `IS DISTINCT F…
Browse files Browse the repository at this point in the history
…ROM`
  • Loading branch information
sad-spirit committed Jan 8, 2025
1 parent bd54940 commit fbc1f17
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 55 deletions.
8 changes: 8 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ Support for new syntax of Postgres 17
passed to `NativeStatement::prepare()`.
* `Node` classes no longer implement deprecated `Serializable` interface.

### Fixed

* Incorrect method was called to parse right argument of `IS [NOT] DISTINCT FROM` expression, causing syntax exceptions
with correct expressions, e.g. `foo IS DISTINCT FROM bar < baz`.
* Some keywords (`AND`, `BETWEEN`, `COLLATE`, `ILIKE`, `IN`, `IS`, `LIKE`, `OR`) that can be used in Postgres
as column aliases without `AS` keyword caused syntax exceptions when used
in such a way, e.g. `SELECT NULL AND` (this returns a null column aliased `and` in Postgres).

## [2.4.0] - 2024-05-27

### Changed
Expand Down
Loading

0 comments on commit fbc1f17

Please sign in to comment.