Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SELECT DISTINCT syntax no longer works #5172

Closed
@lnhrdt

Description

@lnhrdt

SQLDelight Version

2.0.2

SQLDelight Dialect

postgresql

Describe the Bug

I used to be able to write syntax like SELECT DISTINCT col1, col2 FROM ... but since the introduction of DISTINCT ON I can only write SELECT DISTINCT ON (col1, col2) col1, col2 FROM ....

I would prefer to keep both syntaxes to not break migrations that were written before the DISTINCT ON syntax was introduced.

This is a followup from #4584 (comment)

Stacktrace

compile errors from the plugin of the form:

`ON expected, got 'col1'`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions