Skip to content

Don't render empty groups #36

Closed
Closed

Description

@JanHolger

Is your feature request related to a problem? Please describe.
Currently creating an empty group using .and(q -> q) or .or(q -> q) will result in an empty expression group which will make the query fail.

Describe the solution you'd like
Instead of producing invalid sql the empty group (and the preceding conjunction) shouldn't be rendered.

Describe alternatives you've considered
An alternative would be to produce an always false expression but that's probably not what somebody would expect and makes building optional clauses way harder.

Activity

  1. added a commit that references this issue on May 1, 2022
  2. JanHolger commented on May 1, 2022

    @JanHolger
    MemberAuthor

    Fixed in 1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions