Skip to content

values_ produces invalid SQL when passed empty list #559

Open
@thomasjm

Description

@thomasjm

I noticed that a query like values_ [] (against Postgres) produces invalid SQL like this:

SELECT "t0"."res0" as "res0", ... FROM (VALUES ) AS "t0"("res0",...)

The empty VALUES statement causes an error syntax error at or near ")". Maybe it should accept a Data.List.NonEmpty list instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeChange will require a major version bumpbug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions